SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Permit PHONE_NUMBER as scan target
Brendan Coles4026988bb141
diff --git a/dyn/newscan.tmpl b/dyn/newscan.tmplindex 5fa900eb..6563454d 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>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.">+ <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>Phone Number</b>: e.g. <i>+12345678901</i> (E.164 format)<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 3042ce53..b78f1cc4 100644--- a/sflib.py+++ b/sflib.py@@ -569,6 +569,7 @@ class SpiderFoot:{"^\d+\.\d+\.\d+\.\d+$": "IP_ADDRESS"},{"^\d+\.\d+\.\d+\.\d+/\d+$": "NETBLOCK_OWNER"},{"^.*@.*$": "EMAILADDR"},+ {"^\+\d+$": "PHONE_NUMBER"},{"^\".*\"$": "HUMAN_NAME"},{"\d+": "BGP_AS_OWNER"},{"^(([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])$": "INTERNET_NAME"}@@ -1554,7 +1555,7 @@ class SpiderFootPlugin(object):# Class for targetsclass SpiderFootTarget(object):_validTypes = ["IP_ADDRESS", "NETBLOCK_OWNER", "INTERNET_NAME",- "EMAILADDR", "HUMAN_NAME", "BGP_AS_OWNER" ]+ "EMAILADDR", "HUMAN_NAME", "BGP_AS_OWNER", 'PHONE_NUMBER']targetType = NonetargetValue = NonetargetAliases = list()