Skip to content

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

Support for footprinting e-mail addresses!

Steve74b7e28e207f
diff --git a/dyn/newscan.tmpl b/dyn/newscan.tmpl
index a8da49d9..b82d821a 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><br><b>IP Address</b>: e.g. <i>1.2.3.4</i><br><br><b>Hostname/Sub-domain</b>: e.g. <i>abc.example.com</i><br><br><b>Subnet</b>: e.g. <i>1.2.3.0/24</i>' 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>E-mail address</b>: e.g. <i>[email protected]</i>' data-placement='right' id="scantarget" name="scantarget" placeholder="Starting point for the scan.">
</div>
</div>
diff --git a/sflib.py b/sflib.py
index 3189b2ff..d13a2ad7 100644
--- a/sflib.py
+++ b/sflib.py
@@ -520,7 +520,8 @@ class SpiderFoot:
regexToType = {
"^\d+\.\d+\.\d+\.\d+$": "IP_ADDRESS",
"^\d+\.\d+\.\d+\.\d+/\d+$": "NETBLOCK_OWNER",
- "^.[a-zA-Z\-0-9\.]+$": "INTERNET_NAME"
+ "^.[a-zA-Z\-0-9\.]+$": "INTERNET_NAME",
+ "^.*@.*$": "EMAILADDR"
}
# Parse the target and set the targetType
@@ -1476,7 +1477,8 @@ class SpiderFootPlugin(object):
# Class for targets
class SpiderFootTarget(object):
- _validTypes = ["IP_ADDRESS", "NETBLOCK_OWNER", "INTERNET_NAME"]
+ _validTypes = ["IP_ADDRESS", "NETBLOCK_OWNER", "INTERNET_NAME",
+ "EMAILADDR" ]
targetType = None
targetValue = None
targetAliases = list()