forked from p15670423/monkey
Removed typos and cleaned up win_ms08_067.py code
This commit is contained in:
parent
3414f39245
commit
db789abf00
|
@ -5,7 +5,6 @@ if sys.platform.startswith("win"):
|
||||||
|
|
||||||
pythoncom.CoInitialize()
|
pythoncom.CoInitialize()
|
||||||
import wmi
|
import wmi
|
||||||
import wmi
|
|
||||||
|
|
||||||
from .mongo_utils import MongoUtils
|
from .mongo_utils import MongoUtils
|
||||||
|
|
||||||
|
|
|
@ -163,8 +163,6 @@ class Ms08_067_Exploiter(HostExploiter):
|
||||||
super(Ms08_067_Exploiter, self).__init__(host)
|
super(Ms08_067_Exploiter, self).__init__(host)
|
||||||
|
|
||||||
def is_os_supported(self):
|
def is_os_supported(self):
|
||||||
if self.host.os['type'] == 'windows':
|
|
||||||
return True
|
|
||||||
if self.host.os.get('type') in self._TARGET_OS_TYPE and \
|
if self.host.os.get('type') in self._TARGET_OS_TYPE and \
|
||||||
self.host.os.get('version') in list(self._windows_versions.keys()):
|
self.host.os.get('version') in list(self._windows_versions.keys()):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue