8000 1742 add wmi exploiter to puppet by VakarisZ · Pull Request #1766 · guardicore/monkey · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1742 add wmi exploiter to puppet #1766

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

Merged
merged 26 commits into from
Mar 9, 2022
Merged

Conversation

VakarisZ
Copy link
Contributor
@VakarisZ VakarisZ commented Mar 8, 2022

What does this PR do?

Fixes #1742

Testing Checklist

  • Have you successfully tested your changes locally? Elaborate:

    Tested by running 6 wmi threads/machines at a time

Comment on lines 55 to 56
# TODO extract the method in wmiexec.py
creds = self._config.get_exploit_user_password_or_hash_product()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use infectionmonkey.utils.brute_force

Copy link
Collaborator
@mssalvatore mssalvatore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From wmi_tools.py

Is this thread-safe?
image

@mssalvatore
Copy link
Collaborator

From wmi_tools.py

Is this thread-safe? image

image

@VakarisZ
Copy link
Contributor Author
VakarisZ commented Mar 9, 2022

image

@VakarisZ VakarisZ force-pushed the 1742-wmi-exploiter branch from 0d70d8e to e779feb Compare March 9, 2022 13:37
@VakarisZ VakarisZ marked this pull request as ready for review March 9, 2022 13:39
VakarisZ and others added 19 commits March 9, 2022 16:38
Fix a bug in wmi connection cleanup where incorrect keys were being used on a dictionary
All brute force exploiters will have the same structure of options, so instead of calling the generate_username_password_or_ntlm_hash_combinations() and manually unpacking the required arguments from options, we simplify the call and remove duplication
impacket libraries used for WMI are not designed for multithreading
@VakarisZ VakarisZ force-pushed the 1742-wmi-exploiter branch from 71ffbcf to 130c62a Compare March 9, 2022 14:39
@mssalvatore mssalvatore merged commit cbaa325 into agent-refactor Mar 9, 2022
@mssalvatore mssalvatore deleted the 1742-wmi-exploiter branch March 9, 2022 15:17
@mssalvatore mssalvatore restored the 1742-wmi-exploiter branch March 9, 2022 15:18
@VakarisZ VakarisZ deleted the 1742-wmi-exploiter branch March 14, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0