forked from p34709852/monkey
parent
75bff22649
commit
d69976f4b5
|
@ -257,7 +257,7 @@ class WebRCE(HostExploiter):
|
||||||
if 'No such file' in resp:
|
if 'No such file' in resp:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
LOG.info("Host %s was already infected under the current configuration, done" % str(host))
|
LOG.info("Host %s was already infected under the current configuration, done" % str(self.host))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def check_remote_files(self, url):
|
def check_remote_files(self, url):
|
||||||
|
@ -285,7 +285,7 @@ class WebRCE(HostExploiter):
|
||||||
"""
|
"""
|
||||||
ports = self.get_open_service_ports(ports, names)
|
ports = self.get_open_service_ports(ports, names)
|
||||||
if not ports:
|
if not ports:
|
||||||
LOG.info("All default web ports are closed on %r, skipping", str(host))
|
LOG.info("All default web ports are closed on %r, skipping", str(self.host))
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return ports
|
return ports
|
||||||
|
@ -462,7 +462,7 @@ class WebRCE(HostExploiter):
|
||||||
"""
|
"""
|
||||||
src_path = get_target_monkey(self.host)
|
src_path = get_target_monkey(self.host)
|
||||||
if not src_path:
|
if not src_path:
|
||||||
LOG.info("Can't find suitable monkey executable for host %r", host)
|
LOG.info("Can't find suitable monkey executable for host %r", self.host)
|
||||||
return False
|
return False
|
||||||
# Determine which destination path to use
|
# Determine which destination path to use
|
||||||
dest_path = self.get_monkey_upload_path(src_path)
|
dest_path = self.get_monkey_upload_path(src_path)
|
||||||
|
|
Loading…
Reference in New Issue