-
Notifications
You must be signed in to change notification settings - Fork 807
Ms08-067exploiter bugfixes, Defender evasion #807
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
Conversation
import pythoncom | ||
|
||
pythoncom.CoInitialize() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes:
2020-08-25 16:08:37,434 [1448:10092:DEBUG] win_ms08_067.start.113: Initiating exploit connection (ncacn_np:192.168.56.3[\pipe\browser])
2020-08-25 16:08:45,503 [1448:10092:DEBUG] win_ms08_067._exploit_host.211: Error exploiting victim VictimHost('192.168.56.3'): ([Errno Connection error (192.168.56.3:445)] [WinError 10061] No connection could be made because the target machine actively refused it)
Exception in thread Thread-7:
Traceback (most recent call last):
File "C:\Users\Vakaris\AppData\Local\Programs\Python\Python37\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\Users\Vakaris\AppData\Local\Programs\Python\Python37\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Vakaris\Desktop\infection_monkey\monkey\infection_monkey\monkey.py", line 242, in start_post_breach_phase
self.collect_system_info_if_configured()
File "C:\Users\Vakaris\Desktop\infection_monkey\monkey\infection_monkey\monkey.py", line 254, in collect_system_info_if_configured
system_info_collector = SystemInfoCollector()
File "C:\Users\Vakaris\Desktop\infection_monkey\monkey\infection_monkey\system_info\__init__.py", line 39, in __init__
from .windows_info_collector import WindowsInfoCollector
File "C:\Users\Vakaris\Desktop\infection_monkey\monkey\infection_monkey\system_info\windows_info_collector.py", line 13, in <module>
from common.utils.wmi_utils import WMIUtils
File "C:\Users\Vakaris\Desktop\infection_monkey\monkey\common\utils\wmi_utils.py", line 4, in <module>
import wmi
File "C:\Users\Vakaris\AppData\Roaming\Python\Python37\site-packages\wmi.py", line 174, in <module>
obj = GetObject("winmgmts:")
File "C:\Users\Vakaris\AppData\Roaming\Python\Python37\site-packages\win32com\client\__init__.py", line 72, in GetObject
return Moniker(Pathname, clsctx)
File "C:\Users\Vakaris\AppData\Roaming\Python\Python37\site-packages\win32com\client\__init__.py", line 87, in Moniker
moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)
Codecov Report
@@ Coverage Diff @@
## develop #807 +/- ##
===========================================
+ Coverage 60.32% 60.46% +0.14%
===========================================
Files 161 164 +3
Lines 4900 4930 +30
===========================================
+ Hits 2956 2981 +25
- Misses 1944 1949 +5
Continue to review full report at Codecov.
|
What does this PR do?
Fixes #801
Fixes MS08-067 bugs.
PR Checklist
Testing Checklist
Explain Changes
Are the commit messages enough? If not, elaborate.