-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to get WMI working #331
Comments
@gooseleggs -Scott |
Scott So today, I enabled Audit logging for all WMI created processes. I ran the Greenbone scanner, and then put the line As per when did we think it broke - not sure. 22.4.47 had the fault. |
OK ... "-2" means the file was not found. The audit logs, (Thank you btw) show the failure trying to execute "impacket-wmiexe" . I'm relatively certain this is the binary needed, but no idea why it would be named differently. Could you try linking it in the container and re-running the scan?
If that works, I just need to figure out "why" its different, and either fix the why or add the linking to the startup. Thanks, |
Interesting...but no success. So I did what you asked. However I thought that it might be because the linking was relative, ie So, don't have an answer yet |
Scott Done a few more hours into this. Gone down the wrong rabbit hole, and back up. Haven't got an answer, but it must be in the building of the image, as WMI is not an external call. So, changes to the base image: First the wrong rabbit hole....
Doing this in the Greenbone container results in:
Looking at the Dockerfile from Greenbone (https://github.com/greenbone/ospd-openvas/blob/main/.docker/prod.Dockerfile), the following lines are used:
Next testing WMI...
Looking at the audit log file, nothing is called, so this When run inside the Greenbone opsd container
|
that triggered a memory.
I'm thinking it took that option seriously and broke the system packages. :) I'm rebuilding again now without the impacket by apt. the tag will be 25.02.goose -Scott |
Scott That image still has the 10.0 version of impacket in it. Manually removing the system version and installing the python version is not resolving it either. I think the openvas-smb needs to be looked at as well as this seems to do the wmi stuff. |
Using the 25.01.01 container, and trying to perform a WMI scan against a known machine, I get
under the
Authenticated Scan / LSC Info Consolidation (Windows SMB Login)
report for a scan. Jumping into the container and running thewmic
command, or theimpacket-wmic
command works as expected (I can get a response). However, there is nothing in the scanning logs, other than WMI access is denied or not available.For comparison, I spun up the Greenbone community containers (that was a mission!!) and did a comparison scan. That scan was successful, and I received
So, how would I go about trying to troubleshoot this to provide some valid feedback??
The text was updated successfully, but these errors were encountered: