SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfp_tool_testsslsh: Added ability to filter on criticality.
smicallef87e49991a3cc
diff --git a/modules/sfp_tool_testsslsh.py b/modules/sfp_tool_testsslsh.pyindex 6380d869..c590b65b 100644--- a/modules/sfp_tool_testsslsh.py+++ b/modules/sfp_tool_testsslsh.py@@ -43,13 +43,15 @@ class sfp_tool_testsslsh(SpiderFootPlugin):opts = {'testsslsh_path': '','netblockscan': True,- 'netblockscanmax': 24+ 'netblockscanmax': 24,+ 'mincve': 'LOW'}optdescs = {'testsslsh_path': "Path to your testssl.sh executable. Must be set.",'netblockscan': "Test all IPs within identified owned netblocks?",- 'netblockscanmax': "Maximum netblock/subnet size to test IPs within (CIDR value, 24 = /24, 16 = /16, etc.)"+ 'netblockscanmax': "Maximum netblock/subnet size to test IPs within (CIDR value, 24 = /24, 16 = /16, etc.)",+ 'mincve': "Only report CVEs equal to or higher than this level, must be either LOW, MEDIUM, HIGH or CRITICAL."}results = None@@ -95,6 +97,11 @@ class sfp_tool_testsslsh(SpiderFootPlugin):self.errorState = Truereturn+ if self.opts['mincve'].upper().strip() not in ["CRITICAL", "HIGH", "MEDIUM", "LOW"]:+ self.error("Invalid CVE threshold configuration. Must be CRITICAL, HIGH, MEDIUM or LOW.")+ self.errorState = True+ return+exe = self.opts['testsslsh_path']if self.opts['testsslsh_path'].endswith('/'):exe = f"{exe}testssl.sh"@@ -154,6 +161,8 @@ class sfp_tool_testsslsh(SpiderFootPlugin):"5","--openssl-timeout","5",+ "--severity",+ self.opts['mincve'].upper().strip(),"--jsonfile",fname,target