SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Ability to scan ASNs.
Steve Micallef26faed10d40b
diff --git a/dyn/newscan.tmpl b/dyn/newscan.tmplindex 55df430b..60d018c2 100644--- a/dyn/newscan.tmpl+++ b/dyn/newscan.tmpl@@ -52,7 +52,7 @@<div class="control-group"><label class="control-label" for="scantarget">Seed Target</label><div class="controls">- <input type="text" value="${scantarget}" data-toggle='popover' data-html=true data-animation=true data-title='Usage' data-content='The <i>Seed Target</i> can be one of the following. SpiderFoot will automatically detect the target type based on the format of your input.<br><br><b>Domain Name</b>: e.g. <i>example.com</i><br><b>IP Address</b>: e.g. <i>1.2.3.4</i><br><b>Hostname/Sub-domain</b>: e.g. <i>abc.example.com</i><br><b>Subnet</b>: e.g. <i>1.2.3.0/24</i><br><b>E-mail address</b>: e.g. <i>[email protected]</i><br><b>Human Name</b>: e.g. <i>"John Smith"</i> (must be in quotes)' data-placement='right' id="scantarget" name="scantarget" placeholder="Starting point for the scan.">+ <input type="text" value="${scantarget}" data-toggle='popover' data-html=true data-animation=true data-title='Usage' data-content='The <i>Seed Target</i> can be one of the following. SpiderFoot will automatically detect the target type based on the format of your input.<br><br><b>Domain Name</b>: e.g. <i>example.com</i><br><b>IP Address</b>: e.g. <i>1.2.3.4</i><br><b>Hostname/Sub-domain</b>: e.g. <i>abc.example.com</i><br><b>Subnet</b>: e.g. <i>1.2.3.0/24</i><br><b>ASN</b>: e.g. <i>1234</i><br><b>E-mail address</b>: e.g. <i>[email protected]</i><br><b>Human Name</b>: e.g. <i>"John Smith"</i> (must be in quotes)' data-placement='right' id="scantarget" name="scantarget" placeholder="Starting point for the scan."></div></div>diff --git a/sflib.py b/sflib.pyindex 8974177b..ae35b614 100644--- a/sflib.py+++ b/sflib.py@@ -569,6 +569,7 @@ class SpiderFoot:"^\d+\.\d+\.\d+\.\d+/\d+$": "NETBLOCK_OWNER","^.*@.*$": "EMAILADDR","^\".*\"$": "HUMAN_NAME",+ "\d+": "BGP_AS_OWNER",".*\..*": "INTERNET_NAME"}@@ -1624,7 +1625,7 @@ class SpiderFootPlugin(object):# Class for targetsclass SpiderFootTarget(object):_validTypes = ["IP_ADDRESS", "NETBLOCK_OWNER", "INTERNET_NAME",- "EMAILADDR", "HUMAN_NAME" ]+ "EMAILADDR", "HUMAN_NAME", "BGP_AS_OWNER" ]targetType = NonetargetValue = NonetargetAliases = list()diff --git a/sfwebui.py b/sfwebui.pyindex 61576cb5..a98dd2de 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -322,7 +322,7 @@ class SpiderFootWebUi:if targetType == None:# Should never be triggered for a re-run scan..return self.error("Invalid target type. Could not recognize it as " + \- "a human name, IP address, IP subnet, domain name or host name.")+ "a human name, IP address, IP subnet, ASN, domain name or host name.")# Start running a new scannewId = sf.genScanInstanceGUID(scanname)@@ -736,7 +736,7 @@ class SpiderFootWebUi:if targetType is None:if not cli:return self.error("Invalid target type. Could not recognize it as " + \- "a human name, IP address, IP subnet, domain name or host name.")+ "a human name, IP address, IP subnet, ASN, domain name or host name.")else:return json.dumps(["ERROR", "Unrecognised target type."])