SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
flake8: resolve flake8 violations: E741
Brendan Coles00a74bd2a33b
diff --git a/modules/sfp_bingsearch.py b/modules/sfp_bingsearch.pyindex d64150fe..adc935eb 100644--- a/modules/sfp_bingsearch.py+++ b/modules/sfp_bingsearch.py@@ -112,8 +112,8 @@ class sfp_bingsearch(SpiderFootPlugin):new_links = list(set(urls) - set(self.results.keys()))# Add new links to results- for l in new_links:- self.results[l] = True+ for link in new_links:+ self.results[link] = Trueinternal_links = [link for link in new_links if self.sf.urlFQDN(link).endswith(eventData)diff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.pyindex 6d095bef..d3e568da 100644--- a/modules/sfp_googlesearch.py+++ b/modules/sfp_googlesearch.py@@ -118,8 +118,8 @@ class sfp_googlesearch(SpiderFootPlugin):new_links = list(set(urls) - set(self.results.keys()))# Add new links to results- for l in new_links:- self.results[l] = True+ for link in new_links:+ self.results[link] = Trueinternal_links = [link for link in new_links if self.sf.urlFQDN(link).endswith(eventData)diff --git a/modules/sfp_onioncity.py b/modules/sfp_onioncity.pyindex 02488d2c..85bc7f64 100644--- a/modules/sfp_onioncity.py+++ b/modules/sfp_onioncity.py@@ -114,8 +114,8 @@ class sfp_onioncity(SpiderFootPlugin):new_links = list(set(urls) - set(self.results.keys()))# Add new links to results- for l in new_links:- self.results[l] = True+ for link in new_links:+ self.results[link] = True# Submit the Google results for analysisgooglesearch_url = res["webSearchUrl"]diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.pyindex 9ba2637b..cb561b80 100644--- a/modules/sfp_pastebin.py+++ b/modules/sfp_pastebin.py@@ -123,8 +123,8 @@ class sfp_pastebin(SpiderFootPlugin):new_links = list(set(urls) - set(self.results.keys()))# Add new links to results- for l in new_links:- self.results[l] = True+ for link in new_links:+ self.results[link] = Truerelevant_links = [link for link in new_links if self.sf.urlBaseUrl(link).endswith(target)diff --git a/setup.cfg b/setup.cfgindex 75de2370..36e257d9 100644--- a/setup.cfg+++ b/setup.cfg@@ -1,5 +1,5 @@[flake8]flake8-max-line-length = 120-ignore = F841 E501 W503 E131 E401 E302 W605 W504 E722 E741 E502+ignore = F841 E501 W503 E131 E401 E302 W605 W504 E722 E502per-file-ignores =spiderfoot/__init__.py:F401