Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Permit IPV6_ADDRESS as scan target

Brendan Colesafe6860b86c8
diff --git a/dyn/newscan.tmpl b/dyn/newscan.tmpl
index 6563454d..1af9f8d8 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>Phone Number</b>: e.g. <i>+12345678901</i> (E.164 format)<br><b>Human Name</b>: e.g. <i>&quot;John Smith&quot;</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>IPv4 Address</b>: e.g. <i>1.2.3.4</i><br><b>IPv6 Address</b>: e.g. <i>2606:4700:4700::1111</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>&quot;John Smith&quot;</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.py
index 045fa643..554effa3 100644
--- a/sflib.py
+++ b/sflib.py
@@ -572,6 +572,7 @@ class SpiderFoot:
{"^\+\d+$": "PHONE_NUMBER"},
{"^\".*\"$": "HUMAN_NAME"},
{"^\d+$": "BGP_AS_OWNER"},
+ {"^[0-9a-f:]+$": "IPV6_ADDRESS"},
{"^(([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"}
]
@@ -1605,7 +1606,7 @@ class SpiderFootPlugin(object):
# Class for targets
class SpiderFootTarget(object):
- _validTypes = ["IP_ADDRESS", "NETBLOCK_OWNER", "INTERNET_NAME",
+ _validTypes = ["IP_ADDRESS", 'IPV6_ADDRESS', "NETBLOCK_OWNER", "INTERNET_NAME",
"EMAILADDR", "HUMAN_NAME", "BGP_AS_OWNER", 'PHONE_NUMBER']
targetType = None
targetValue = None