Fix src_path referenced before assignment on shellshock
This commit is contained in:
parent
34cd3253d7
commit
b64ff7bffb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue