SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Use raw triple quotes (flake8 warning) (#1008)
Leo Trubach532a6feecc70
diff --git a/setup.cfg b/setup.cfgindex 6c889faf..c9e3bb16 100644--- a/setup.cfg+++ b/setup.cfg@@ -4,6 +4,4 @@ max-complexity = 100select = C,E,F,W,B,DUOignore = E501 W503 B006 DUO130per-file-ignores =- spiderfoot/__init__.py:F401- sfcli.py:W605,DUO106- sflib.py:DUO122,DUO131+ spiderfoot/__init__.py:F401\ No newline at end of filediff --git a/sfcli.py b/sfcli.pyindex 1deb317a..197094fe 100755--- a/sfcli.py+++ b/sfcli.py@@ -24,6 +24,17 @@ from os.path import expanduserimport requests++ASCII_LOGO = r"""+ _________ .__ .___ ___________ __+ / _____/_____ |__| __| _/__________\_ _____/___ _____/ |_+ \_____ \\____ \| |/ __ |/ __ \_ __ \ __)/ _ \ / _ \ __\+ / \ |_> > / /_/ \ ___/| | \/ \( <_> | <_> ) |+/_______ / __/|__\____ |\___ >__| \___ / \____/ \____/|__|+ \/|__| \/ \/ \/+ Open Source Intelligence Automation."""+COPYRIGHT_INFO = " by Steve Micallef | @spiderfoot\n"+try:import readlineexcept ImportError:@@ -1208,7 +1219,7 @@ class SpiderFootCli(cmd.Cmd):"""shellRun a shell command locally."""self.dprint("Running shell command:" + str(line))- self.dprint(os.popen(line).read(), plain=True) # nosec+ self.dprint(os.popen(line).read(), plain=True) # noqa: DUO106def do_clear(self, line):"""clear@@ -1308,16 +1319,8 @@ if __name__ == "__main__":if not args.q:s = SpiderFootCli()- s.dprint("\n\- _________ .__ .___ ___________ __ \n\- / _____/_____ |__| __| _/__________\\_ _____/___ _____/ |_ \n\- \_____ \\\\____ \| |/ __ |/ __ \\_ __ \\ __)/ _ \ / _ \\ __\\\n\- / \\ |_> > / /_/ \\ ___/| | \\/ \\( <_> | <_> ) | \n\-/_______ / __/|__\\____ |\\___ >__| \\___ / \\____/ \\____/|__| \n\- \\/|__| \\/ \\/ \\/ \n\- Open Source Intelligence Automation.", plain=True, color=bcolors.GREYBLUE)- s.dprint("\- by Steve Micallef | @spiderfoot\n", plain=True,+ s.dprint(ASCII_LOGO, plain=True, color=bcolors.GREYBLUE)+ s.dprint(COPYRIGHT_INFO, plain=True,color=bcolors.GREYBLUE_DARK)s.dprint(f"Version {s.version}.")if args.b:diff --git a/sflib.py b/sflib.pyindex 7bb8d38e..bab2e02a 100644--- a/sflib.py+++ b/sflib.py@@ -45,7 +45,7 @@ from stem import Signalfrom stem.control import Controller# For hiding the SSL warnings coming from the requests lib-urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)+urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # noqa: DUO131class SpiderFoot:@@ -77,7 +77,7 @@ class SpiderFoot:# This is ugly but we don't want any fetches to fail - we expect# to encounter unverified SSL certs!- ssl._create_default_https_context = ssl._create_unverified_context+ ssl._create_default_https_context = ssl._create_unverified_context # noqa: DUO122if self.opts.get('_dnsserver', "") != "":res = dns.resolver.Resolver()