SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Made junk file checker abort aware.
smicallef72d5ee1fac15
diff --git a/modules/sfp_junkfiles.py b/modules/sfp_junkfiles.pyindex d322e77e..f99e1dc1 100644--- a/modules/sfp_junkfiles.py+++ b/modules/sfp_junkfiles.py@@ -72,6 +72,9 @@ class sfp_junkfiles(SpiderFootPlugin):eventData.endswith(ext):bits = eventData.split("?")for x in self.opts['fileexts']:+ if self.checkForStop():+ return None+self.sf.debug("Trying " + x + " against " + eventData)fetch = bits[0] + "." + xif fetch not in self.results:@@ -92,6 +95,9 @@ class sfp_junkfiles(SpiderFootPlugin):for ext in ["index.html", "index.htm", "default.htm"]:self.sf.debug("Trying " + ext + " against " + eventData)for x in self.opts['fileexts']:+ if self.checkForStop():+ return None+fetch = eventData + "/" + ext + "." + xif fetch not in self.results:self.results.append(fetch)@@ -112,6 +118,9 @@ class sfp_junkfiles(SpiderFootPlugin):# http://www/blah/abc.html -> try http://www/blah.[dirs]for dirfile in self.opts['dirs']:+ if self.checkForStop():+ return None+self.sf.debug("Trying " + dirfile + " against " + eventData)fetch = base[0:len(base) - 1] + "." + dirfileif fetch not in self.results:@@ -128,6 +137,9 @@ class sfp_junkfiles(SpiderFootPlugin):# http://www/blah/abc.html -> try http://www/blah/[files]for f in self.opts['files']:+ if self.checkForStop():+ return None+self.sf.debug("Trying " + f + " against " + eventData)fetch = base + fif fetch not in self.results: