SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Handle comments and sort config output.
Steve3383cc72f99d
diff --git a/sfcli.py b/sfcli.pyindex 660df89b..a6767883 100644--- a/sfcli.py+++ b/sfcli.py@@ -57,6 +57,12 @@ class SpiderFootCli(cmd.Cmd):"cli.server_baseurl": "http://127.0.0.1:5001"}+ def default(self, line):+ if line.startswith('#'):+ return++ self.edprint("Unknown command")+# Auto-complete for these commandsdef complete_start(self, text, line, startidx, endidx):return self.complete_default(text, line, startidx, endidx)@@ -583,7 +589,7 @@ class SpiderFootCli(cmd.Cmd):if "-c" in c[0]:out += "Configuration:\n"- for k in j['config']:+ for k in sorted(j['config']):out += " " + k + " = " + j['config'][k] + "\n"self.send_output(out, line, total=False, raw=True)