SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
flake8-bugbear: resolve B007 violation
Brendan Coles2a080c4d8db9
diff --git a/modules/sfp_dnsresolve.py b/modules/sfp_dnsresolve.pyindex e4484ac7..68c985fb 100644--- a/modules/sfp_dnsresolve.py+++ b/modules/sfp_dnsresolve.py@@ -238,7 +238,8 @@ class sfp_dnsresolve(SpiderFootPlugin):addrs = self.sf.resolveIP(ipaddr)if addrs:self.sf.debug(f"Found a reversed hostname from {ipaddr} ({addrs})")- for addr in addrs:+ # TODO: review why addr is not used in this loop. should `ipaddr` instead be `addr` ?+ for _addr in addrs:# Generate an event for the IP, then# let the handling by this module take# care of follow-up processing.diff --git a/setup.cfg b/setup.cfgindex 371ee2d7..465364c5 100644--- a/setup.cfg+++ b/setup.cfg@@ -2,7 +2,7 @@flake8-max-line-length = 120max-complexity = 100select = C,E,F,W,B-ignore = E501 W503 B006 B007+ignore = E501 W503 B006per-file-ignores =spiderfoot/__init__.py:F401sfcli.py:W605