Fix src_path referenced before assignment on shellshock

This commit is contained in:
Itay Mizeretz 2017-10-19 17:59:17 +03:00
parent 34cd3253d7
commit b64ff7bffb
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class ShellShockExploiter(HostExploiter):
LOG.info("Host %s was already infected under the current configuration, done" % self.host)
return True # return already infected
src_path = src_path or get_target_monkey(self.host)
src_path = get_target_monkey(self.host)
if not src_path:
LOG.info("Can't find suitable monkey executable for host %r", self.host)
return False