Now break the loop as soon as we encounter timeout

This commit is contained in:
VakarisZ 2018-12-11 09:44:21 +02:00
parent efde6d1643
commit 03ad75b043
1 changed files with 1 additions and 1 deletions

View File

@ -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]