forked from p15670423/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))
|
reqs.append(requests.head(u, verify=False, timeout=TIMEOUT))
|
||||||
except requests.Timeout:
|
except requests.Timeout:
|
||||||
timeout = True
|
timeout = True
|
||||||
continue
|
break
|
||||||
if timeout:
|
if timeout:
|
||||||
LOG.debug("Some connections timed out while sending request to potentially vulnerable urls.")
|
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]
|
valid_resps = [req for req in reqs if req and req.status_code == requests.codes.ok]
|
||||||
|
|
Loading…
Reference in New Issue