SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfp_tool_wafw00f: Enforce a timeout to prevent being blocked.
smicallef38a417e8afc7
diff --git a/modules/sfp_tool_wafw00f.py b/modules/sfp_tool_wafw00f.pyindex 687ce658..8e508af5 100644--- a/modules/sfp_tool_wafw00f.py+++ b/modules/sfp_tool_wafw00f.py@@ -13,7 +13,7 @@import jsonimport os.path-from subprocess import PIPE, Popen+from subprocess import PIPE, Popen, TimeoutExpiredfrom spiderfoot import SpiderFootEvent, SpiderFootPlugin, SpiderFootHelpers@@ -108,7 +108,12 @@ class sfp_tool_wafw00f(SpiderFootPlugin):]try:p = Popen(args, stdout=PIPE, stderr=PIPE)- stdout, stderr = p.communicate(input=None)+ stdout, stderr = p.communicate(input=None, timeout=300)+ except TimeoutExpired:+ p.kill()+ stdout, stderr = p.communicate()+ self.debug(f"Timed out waiting for wafw00f to finish on {eventData}")+ returnexcept Exception as e:self.error(f"Unable to run wafw00f: {e}")return