forked from p34709852/monkey
Now break the loop as soon as we encounter timeout
This commit is contained in:
parent
efde6d1643
commit
03ad75b043
|
@ -210,7 +210,7 @@ class ShellShockExploiter(HostExploiter):
|
|||
reqs.append(requests.head(u, verify=False, timeout=TIMEOUT))
|
||||
except requests.Timeout:
|
||||
timeout = True
|
||||
continue
|
||||
break
|
||||
if timeout:
|
||||
LOG.debug("Some connections timed out while sending request to potentially vulnerable urls.")
|
||||
valid_resps = [req for req in reqs if req and req.status_code == requests.codes.ok]
|
||||
|
|
Loading…
Reference in New Issue