SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfwebui: Provide intuitive error messages
bcoles1c25047a01db
diff --git a/sfwebui.py b/sfwebui.pyindex 8a23b679..b98d5f8c 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -759,16 +759,16 @@ class SpiderFootWebUi:[scanname, scantarget] = self.cleanUserInput([scanname, scantarget])if scanname == "" or scantarget == "":- if not cli:- return self.error("Form incomplete.")+ if cli:+ return json.dumps(["ERROR", "Incorrect usage: scan name or target was not specified."])else:- return json.dumps(["ERROR", "Incorrect usage."])+ return self.error("Invalid request: scan name or target was not specified.")if typelist == "" and modulelist == "" and usecase == "":- if not cli:- return self.error("Form incomplete.")+ if cli:+ return json.dumps(["ERROR", "Incorrect usage: no modules specified for scan."])else:- return json.dumps(["ERROR", "Incorrect usage."])+ return self.error("Invalid request: no modules specified for scan.")# User selected modules