Skip to content

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

Better classification of modules.

Steve Micallefd07354c48483
diff --git a/modules/sfp_abusech.py b/modules/sfp_abusech.py
index a66d845a..4d0e7434 100644
--- a/modules/sfp_abusech.py
+++ b/modules/sfp_abusech.py
@@ -49,7 +49,7 @@ malchecks = {
}
class sfp_abusech(SpiderFootPlugin):
- """abuse.ch:Investigate,Passive:Reputation Systems:slow:Check if a host/domain, IP or netblock is malicious according to abuse.ch."""
+ """abuse.ch:Investigate,Passive:Reputation Systems::Check if a host/domain, IP or netblock is malicious according to abuse.ch."""
# Default options
diff --git a/modules/sfp_adblock.py b/modules/sfp_adblock.py
index b4ac967a..006e5a64 100644
--- a/modules/sfp_adblock.py
+++ b/modules/sfp_adblock.py
@@ -16,7 +16,9 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_adblock(SpiderFootPlugin):
- """AdBlock Check:Investigate,Passive:Reputation Systems:errorprone:Check if linked pages would be blocked by AdBlock Plus."""
+ """AdBlock Check:Investigate,Passive:Reputation Systems::Check if linked pages would be blocked by AdBlock Plus."""
+
+
# Default options
diff --git a/modules/sfp_alienvault.py b/modules/sfp_alienvault.py
index 7a4454b4..321678bb 100644
--- a/modules/sfp_alienvault.py
+++ b/modules/sfp_alienvault.py
@@ -34,7 +34,7 @@ class sfp_alienvault(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key": "Your AlienVault OTX API Key",
+ "api_key": "AlienVault OTX API Key.",
"age_limit_days": "Ignore any records older than this many days. 0 = unlimited.",
"threat_score_min": "Minimum AlienVault threat score.",
'netblocklookup': "Look up all IPs on netblocks deemed to be owned by your target for possible blacklisted hosts on the same target subdomain/domain?",
diff --git a/modules/sfp_alienvaultiprep.py b/modules/sfp_alienvaultiprep.py
index f601a5ff..731b5854 100644
--- a/modules/sfp_alienvaultiprep.py
+++ b/modules/sfp_alienvaultiprep.py
@@ -26,7 +26,9 @@ malchecks = {
class sfp_alienvaultiprep(SpiderFootPlugin):
- """AlienVault IP Reputation:Investigate,Passive:Reputation Systems:slow:Check if an IP or netblock is malicious according to the AlienVault IP Reputation database."""
+ """AlienVault IP Reputation:Investigate,Passive:Reputation Systems::Check if an IP or netblock is malicious according to the AlienVault IP Reputation database."""
+
+
# Default options
diff --git a/modules/sfp_badipscom.py b/modules/sfp_badipscom.py
index 12bd6a17..147e03f0 100644
--- a/modules/sfp_badipscom.py
+++ b/modules/sfp_badipscom.py
@@ -26,7 +26,7 @@ malchecks = {
class sfp_badipscom(SpiderFootPlugin):
- """badips.com:Investigate,Passive:Reputation Systems:slow:Check if a domain or IP is malicious according to badips.com."""
+ """badips.com:Investigate,Passive:Reputation Systems::Check if a domain or IP is malicious according to badips.com."""
# Default options
diff --git a/modules/sfp_bingsearch.py b/modules/sfp_bingsearch.py
index fd669841..62292aa8 100644
--- a/modules/sfp_bingsearch.py
+++ b/modules/sfp_bingsearch.py
@@ -14,7 +14,9 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_bingsearch(SpiderFootPlugin):
- """Bing:Footprint,Investigate,Passive:Search Engines:errorprone:Some light Bing scraping to identify sub-domains and links."""
+ """Bing:Footprint,Investigate,Passive:Search Engines::Some light Bing scraping to identify sub-domains and links."""
+
+
# Default options
diff --git a/modules/sfp_bingsharedip.py b/modules/sfp_bingsharedip.py
index a25e6ed7..5315bd2f 100644
--- a/modules/sfp_bingsharedip.py
+++ b/modules/sfp_bingsharedip.py
@@ -17,7 +17,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_bingsharedip(SpiderFootPlugin):
- """Bing (Shared IPs):Footprint,Investigate,Passive:Search Engines:errorprone:Search Bing for hosts sharing the same IP."""
+ """Bing (Shared IPs):Footprint,Investigate,Passive:Search Engines::Search Bing for hosts sharing the same IP."""
# Default options
diff --git a/modules/sfp_bitcash.py b/modules/sfp_bitcash.py
index 716a49a4..9d0257e4 100644
--- a/modules/sfp_bitcash.py
+++ b/modules/sfp_bitcash.py
@@ -26,7 +26,9 @@ malchecks = {
class sfp_bitcash(SpiderFootPlugin):
- """Bitcash.cz Malicious IPs:Investigate,Passive:Reputation Systems:slow:Check if an IP is malicious according to Bitcash.cz Malicious IPs."""
+ """Bitcash.cz Malicious IPs:Investigate,Passive:Reputation Systems::Check if an IP is malicious according to Bitcash.cz Malicious IPs."""
+
+
# Default options
diff --git a/modules/sfp_blocklistde.py b/modules/sfp_blocklistde.py
index 37874ef6..6abbbfd5 100644
--- a/modules/sfp_blocklistde.py
+++ b/modules/sfp_blocklistde.py
@@ -25,7 +25,9 @@ malchecks = {
class sfp_blocklistde(SpiderFootPlugin):
- """blocklist.de:Investigate,Passive:Reputation Systems:slow:Check if a netblock or IP is malicious according to blocklist.de."""
+ """blocklist.de:Investigate,Passive:Reputation Systems::Check if a netblock or IP is malicious according to blocklist.de."""
+
+
# Default options
diff --git a/modules/sfp_botscout.py b/modules/sfp_botscout.py
index bf4340c3..c62f363c 100644
--- a/modules/sfp_botscout.py
+++ b/modules/sfp_botscout.py
@@ -18,13 +18,12 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_botscout(SpiderFootPlugin):
"""BotScout:Investigate:Reputation Systems:apikey:Searches botscout.com's database of spam-bot IPs and e-mail addresses."""
-
# Default options
opts = {
"api_key": ""
}
optdescs = {
- "api_key": "botscout.com API key. Without this you will be limited to 50 look-ups per day."
+ "api_key": "Botscout.com API key. Without this you will be limited to 50 look-ups per day."
}
results = dict()
errorState = False
diff --git a/modules/sfp_builtwith.py b/modules/sfp_builtwith.py
index bbf8d782..ebaf0abb 100644
--- a/modules/sfp_builtwith.py
+++ b/modules/sfp_builtwith.py
@@ -26,7 +26,7 @@ class sfp_builtwith(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key": "Your Domain API key from builtwith.com.",
+ "api_key": "Builtwith.com Domain API key.",
"maxage": "The maximum age of the data returned, in days, in order to be considered valid."
}
diff --git a/modules/sfp_censys.py b/modules/sfp_censys.py
index 1ccb0253..ebacade3 100644
--- a/modules/sfp_censys.py
+++ b/modules/sfp_censys.py
@@ -30,8 +30,8 @@ class sfp_censys(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "censys_api_key_uid": "Your Censys.io API UID",
- "censys_api_key_secret": "Your Censys.io API Secret",
+ "censys_api_key_uid": "Censys.io API UID.",
+ "censys_api_key_secret": "Censys.io API Secret.",
"age_limit_days": "Ignore any records older than this many days. 0 = unlimited."
}
diff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.py
index 86b21697..8ab51a47 100644
--- a/modules/sfp_circllu.py
+++ b/modules/sfp_circllu.py
@@ -32,8 +32,8 @@ class sfp_circllu(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key_login": "Your CIRCL.LU login",
- "api_key_password": "Your CIRCL.LU password",
+ "api_key_login": "CIRCL.LU login.",
+ "api_key_password": "CIRCL.LU password.",
"age_limit_days": "Ignore any Passive DNS records older than this many days. 0 = unlimited.",
"verify": "Verify co-hosts are valid by checking if they still resolve to the shared IP.",
"cohostsamedomain": "Treat co-hosted sites on the same target domain as co-hosting?"
diff --git a/modules/sfp_citadel.py b/modules/sfp_citadel.py
index e3eb1c1b..e20353b6 100644
--- a/modules/sfp_citadel.py
+++ b/modules/sfp_citadel.py
@@ -22,7 +22,7 @@ class sfp_citadel(SpiderFootPlugin):
"timeout": 60
}
optdescs = {
- "api_key": "citadel.pw API key. Without this you're limited to the public API.",
+ "api_key": "Citadel.pw API key. Without this you're limited to the public API.",
"timeout": "Custom timeout due to heavy traffic at times."
}
diff --git a/modules/sfp_clearbit.py b/modules/sfp_clearbit.py
index 2c40e51e..567dc8af 100644
--- a/modules/sfp_clearbit.py
+++ b/modules/sfp_clearbit.py
@@ -17,6 +17,8 @@ class sfp_clearbit(SpiderFootPlugin):
"""Clearbit:Footprint,Investigate,Passive:Search Engines:apikey:Check for names, addresses, domains and more based on lookups of e-mail addresses on clearbit.com."""
+
+
# Default options
opts = {
"api_key": ""
@@ -24,7 +26,7 @@ class sfp_clearbit(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key": "Your API key from clearbit.com."
+ "api_key": "Clearbit.com API key."
}
# Be sure to completely clear any class variables in setup()
diff --git a/modules/sfp_cybercrimetracker.py b/modules/sfp_cybercrimetracker.py
index 99b78d71..83c21c68 100644
--- a/modules/sfp_cybercrimetracker.py
+++ b/modules/sfp_cybercrimetracker.py
@@ -26,7 +26,7 @@ malchecks = {
class sfp_cybercrimetracker(SpiderFootPlugin):
- """cybercrime-tracker.net:Investigate,Passive:Reputation Systems:slow:Check if a host/domain or IP is malicious according to cybercrime-tracker.net."""
+ """cybercrime-tracker.net:Investigate,Passive:Reputation Systems::Check if a host/domain or IP is malicious according to cybercrime-tracker.net."""
# Default options
diff --git a/modules/sfp_cymon.py b/modules/sfp_cymon.py
index ac00a60f..b496927d 100644
--- a/modules/sfp_cymon.py
+++ b/modules/sfp_cymon.py
@@ -33,7 +33,7 @@ class sfp_cymon(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "cymon_api_key": "Your Cymon.io API Key",
+ "cymon_api_key": "Your Cymon.io API Key.",
"age_limit_days": "Ignore any records older than this many days. 0 = unlimited.",
'netblocklookup': "Look up all IPs on netblocks deemed to be owned by your target for possible blacklisted hosts on the same target subdomain/domain?",
'maxnetblock': "If looking up owned netblocks, the maximum netblock size to look up all IPs within (CIDR value, 24 = /24, 16 = /16, etc.)",
diff --git a/modules/sfp_filemeta.py b/modules/sfp_filemeta.py
index e7cf1b3b..34151043 100644
--- a/modules/sfp_filemeta.py
+++ b/modules/sfp_filemeta.py
@@ -21,7 +21,9 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_filemeta(SpiderFootPlugin):
- """File Metadata:Footprint:Content Analysis:invasive,slow:Extracts meta data from documents and images."""
+ """File Metadata:Footprint:Content Analysis::Extracts meta data from documents and images."""
+
+
# Default options
diff --git a/modules/sfp_fortinet.py b/modules/sfp_fortinet.py
index 5edadeb9..1f8e0820 100644
--- a/modules/sfp_fortinet.py
+++ b/modules/sfp_fortinet.py
@@ -27,7 +27,7 @@ malchecks = {
class sfp_fortinet(SpiderFootPlugin):
- """Fortiguard.com:Investigate,Passive:Reputation Systems:slow:Check if an IP is malicious according to Fortiguard.com."""
+ """Fortiguard.com:Investigate,Passive:Reputation Systems::Check if an IP is malicious according to Fortiguard.com."""
# Default options
diff --git a/modules/sfp_fraudguard.py b/modules/sfp_fraudguard.py
index e8d3b2fb..d46afee9 100644
--- a/modules/sfp_fraudguard.py
+++ b/modules/sfp_fraudguard.py
@@ -32,8 +32,8 @@ class sfp_fraudguard(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "fraudguard_api_key_account": "Your Fraudguard.io API username",
- "fraudguard_api_key_password": "Your Fraudguard.io API password",
+ "fraudguard_api_key_account": "Fraudguard.io API username.",
+ "fraudguard_api_key_password": "Fraudguard.io API password.",
"age_limit_days": "Ignore any records older than this many days. 0 = unlimited.",
'netblocklookup': "Look up all IPs on netblocks deemed to be owned by your target for possible blacklisted hosts on the same target subdomain/domain?",
'maxnetblock': "If looking up owned netblocks, the maximum netblock size to look up all IPs within (CIDR value, 24 = /24, 16 = /16, etc.)"
diff --git a/modules/sfp_fullcontact.py b/modules/sfp_fullcontact.py
index 0c0fe729..cb9abb32 100644
--- a/modules/sfp_fullcontact.py
+++ b/modules/sfp_fullcontact.py
@@ -27,7 +27,7 @@ class sfp_fullcontact(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key": "Your API key from fullcontact.com.",
+ "api_key": "Fullcontact.com API key.",
"max_age_days": "Maximum number of age in days for a record before it's considered invalid and not reported."
}
diff --git a/modules/sfp_hackedemails.py b/modules/sfp_hackedemails.py
index 251ba628..6036af3f 100644
--- a/modules/sfp_hackedemails.py
+++ b/modules/sfp_hackedemails.py
@@ -15,7 +15,7 @@ import time
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_hackedemails(SpiderFootPlugin):
- """Hacked-Emails.com:Footprint,Investigate,Passive:Leaks, Dumps and Breaches:errorprone:Check Hacked-Emails.com for hacked e-mail addresses identified."""
+ """Hacked-Emails.com:Footprint,Investigate,Passive:Leaks, Dumps and Breaches::Check Hacked-Emails.com for hacked e-mail addresses identified."""
# Default options
diff --git a/modules/sfp_hackertarget.py b/modules/sfp_hackertarget.py
index de39de40..aea890e4 100644
--- a/modules/sfp_hackertarget.py
+++ b/modules/sfp_hackertarget.py
@@ -17,7 +17,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_hackertarget(SpiderFootPlugin):
- """HackerTarget.com:Footprint,Investigate,Passive:Reputation Systems:errorprone:Search HackerTarget.com for hosts sharing the same IP."""
+ """HackerTarget.com:Footprint,Investigate,Passive:Passive DNS::Search HackerTarget.com for hosts sharing the same IP."""
# Default options
diff --git a/modules/sfp_haveibeenpwned.py b/modules/sfp_haveibeenpwned.py
index b102ab79..9407cc13 100644
--- a/modules/sfp_haveibeenpwned.py
+++ b/modules/sfp_haveibeenpwned.py
@@ -15,7 +15,7 @@ import time
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_haveibeenpwned(SpiderFootPlugin):
- """HaveIBeenPwned:Footprint,Investigate,Passive:Leaks, Dumps and Breaches:errorprone:Check Have I Been Pwned? for hacked e-mail addresses identified."""
+ """HaveIBeenPwned:Footprint,Investigate,Passive:Leaks, Dumps and Breaches::Check Have I Been Pwned? for hacked e-mail addresses identified."""
# Default options
@@ -60,10 +60,13 @@ class sfp_haveibeenpwned(SpiderFootPlugin):
time.sleep(1.5)
res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],
useragent="SpiderFoot", headers=hdrs)
+
if res['code'] == "200":
break
+
if res['code'] == "404":
return None
+
if res['code'] == "429":
# Back off a little further
time.sleep(2)
diff --git a/modules/sfp_honeypot.py b/modules/sfp_honeypot.py
index aae68918..3e091ca7 100644
--- a/modules/sfp_honeypot.py
+++ b/modules/sfp_honeypot.py
@@ -34,7 +34,7 @@ class sfp_honeypot(SpiderFootPlugin):
# Option descriptions
optdescs = {
- 'api_key': "The API key you obtained from projecthoneypot.org",
+ 'api_key': "Projecthoneypot.org API key.",
'searchengine': "Include entries considered search engines?",
'threatscore': "Threat score minimum, 0 being everything and 255 being only the most serious.",
'timelimit': "Maximum days old an entry can be. 255 is the maximum, 0 means you'll get nothing.",
diff --git a/modules/sfp_hostsfilenet.py b/modules/sfp_hostsfilenet.py
index 0db8891b..bf94e23d 100644
--- a/modules/sfp_hostsfilenet.py
+++ b/modules/sfp_hostsfilenet.py
@@ -19,14 +19,13 @@ malchecks = {
'id': '_hphosts',
'type': 'list',
'checks': ['domain'],
- 'url': 'http://hosts-file.net/download/hosts.txt',
- 'regex': '^127.0.0.1\s+{0}$'
+ 'url': 'http://hosts-file.net/download/hosts.txt'
}
}
class sfp_hostsfilenet(SpiderFootPlugin):
- """hosts-file.net Malicious Hosts:Investigate,Passive:Reputation Systems:slow:Check if a host/domain is malicious according to hosts-file.net Malicious Hosts."""
+ """hosts-file.net Malicious Hosts:Investigate,Passive:Reputation Systems::Check if a host/domain is malicious according to hosts-file.net Malicious Hosts."""
# Default options
@@ -71,44 +70,6 @@ class sfp_hostsfilenet(SpiderFootPlugin):
return ["MALICIOUS_INTERNET_NAME", "MALICIOUS_AFFILIATE_INTERNET_NAME",
"MALICIOUS_COHOST"]
- # Check the regexps to see whether the content indicates maliciousness
- def contentMalicious(self, content, goodregex, badregex):
- # First, check for the bad indicators
- if len(badregex) > 0:
- for rx in badregex:
- if re.match(rx, content, re.IGNORECASE | re.DOTALL):
- self.sf.debug("Found to be bad against bad regex: " + rx)
- return True
-
- # Finally, check for good indicators
- if len(goodregex) > 0:
- for rx in goodregex:
- if re.match(rx, content, re.IGNORECASE | re.DOTALL):
- self.sf.debug("Found to be good againt good regex: " + rx)
- return False
-
- # If nothing was matched, reply None
- self.sf.debug("Neither good nor bad, unknown.")
- return None
-
- # Look up 'query' type sources
- def resourceQuery(self, id, target, targetType):
- self.sf.debug("Querying " + id + " for maliciousness of " + target)
- for check in malchecks.keys():
- cid = malchecks[check]['id']
- if id == cid and malchecks[check]['type'] == "query":
- url = unicode(malchecks[check]['url'])
- res = self.sf.fetchUrl(url.format(target), timeout=self.opts['_fetchtimeout'], useragent=self.opts['_useragent'])
- if res['content'] is None:
- self.sf.error("Unable to fetch " + url.format(target), False)
- return None
- if self.contentMalicious(res['content'],
- malchecks[check]['goodregex'],
- malchecks[check]['badregex']):
- return url.format(target)
-
- return None
-
# Look up 'list' type resources
def resourceList(self, id, target, targetType):
targetDom = ''
@@ -130,56 +91,13 @@ class sfp_hostsfilenet(SpiderFootPlugin):
else:
self.sf.cachePut("sfmal_" + cid, data['content'])
- # If we're looking at netblocks
- if targetType == "netblock":
- iplist = list()
- # Get the regex, replace {0} with an IP address matcher to
- # build a list of IP.
- # Cycle through each IP and check if it's in the netblock.
- if 'regex' in malchecks[check]:
- rx = malchecks[check]['regex'].replace("{0}",
- "(\d+\.\d+\.\d+\.\d+)")
- pat = re.compile(rx, re.IGNORECASE)
- self.sf.debug("New regex for " + check + ": " + rx)
- for line in data['content'].split('\n'):
- grp = re.findall(pat, line)
- if len(grp) > 0:
- #self.sf.debug("Adding " + grp[0] + " to list.")
- iplist.append(grp[0])
- else:
- iplist = data['content'].split('\n')
-
- for ip in iplist:
- if len(ip) < 8 or ip.startswith("#"):
- continue
- ip = ip.strip()
-
- try:
- if IPAddress(ip) in IPNetwork(target):
- self.sf.debug(ip + " found within netblock/subnet " +
- target + " in " + check)
- return url
- except Exception as e:
- self.sf.debug("Error encountered parsing: " + str(e))
- continue
-
- return None
-
- # If we're looking at hostnames/domains/IPs
- if 'regex' not in malchecks[check]:
- for line in data['content'].split('\n'):
- if line == target or (targetType == "domain" and line == targetDom):
- self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")
- return url
- else:
- # Check for the domain and the hostname
- rxDom = unicode(malchecks[check]['regex']).format(targetDom)
- rxTgt = unicode(malchecks[check]['regex']).format(target)
- for line in data['content'].split('\n'):
- if (targetType == "domain" and re.match(rxDom, line, re.IGNORECASE)) or \
- re.match(rxTgt, line, re.IGNORECASE):
- self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")
- return url
+ # Check for the domain and the hostname
+ if targetType == "domain" and "127.0.0.1\t" + targetDom + "\n" in data['content']:
+ self.sf.debug(targetDom + " found in " + check + " list.")
+ return url
+ if "127.0.0.1\t" + target + "\n" in data['content']:
+ self.sf.debug(target + " found in " + check + " list.")
+ return url
return None
def lookupItem(self, resourceId, itemType, target):
@@ -188,8 +106,6 @@ class sfp_hostsfilenet(SpiderFootPlugin):
if cid == resourceId and itemType in malchecks[check]['checks']:
self.sf.debug("Checking maliciousness of " + target + " (" +
itemType + ") with: " + cid)
- if malchecks[check]['type'] == "query":
- return self.resourceQuery(cid, target, itemType)
if malchecks[check]['type'] == "list":
return self.resourceList(cid, target, itemType)
@@ -211,7 +127,7 @@ class sfp_hostsfilenet(SpiderFootPlugin):
if eventName == 'CO_HOSTED_SITE' and not self.opts.get('checkcohosts', False):
return None
- if eventName == 'AFFILIATE_IPADDR' \
+ if eventName == 'AFFILIATE_INTERNET_NAME' \
and not self.opts.get('checkaffiliates', False):
return None
@@ -219,19 +135,7 @@ class sfp_hostsfilenet(SpiderFootPlugin):
cid = malchecks[check]['id']
# If the module is enabled..
if self.opts[cid]:
- if eventName in ['IP_ADDRESS', 'AFFILIATE_IPADDR']:
- typeId = 'ip'
- if eventName == 'IP_ADDRESS':
- evtType = 'MALICIOUS_IPADDR'
- else:
- evtType = 'MALICIOUS_AFFILIATE_IPADDR'
-
- if eventName in ['BGP_AS_OWNER', 'BGP_AS_MEMBER']:
- typeId = 'asn'
- evtType = 'MALICIOUS_ASN'
-
- if eventName in ['INTERNET_NAME', 'CO_HOSTED_SITE',
- 'AFFILIATE_INTERNET_NAME', ]:
+ if eventName in ['INTERNET_NAME', 'CO_HOSTED_SITE', 'AFFILIATE_INTERNET_NAME' ]:
typeId = 'domain'
if eventName == "INTERNET_NAME":
evtType = "MALICIOUS_INTERNET_NAME"
@@ -240,10 +144,10 @@ class sfp_hostsfilenet(SpiderFootPlugin):
if eventName == 'CO_HOSTED_SITE':
evtType = 'MALICIOUS_COHOST'
- url = self.lookupItem(cid, typeId, eventData)
if self.checkForStop():
return None
+ url = self.lookupItem(cid, typeId, eventData)
# Notify other modules of what you've found
if url is not None:
text = check + " [" + eventData + "]\n" + "<SFURL>" + url + "</SFURL>"
diff --git a/modules/sfp_hunter.py b/modules/sfp_hunter.py
index a35a96b0..1aa09a91 100644
--- a/modules/sfp_hunter.py
+++ b/modules/sfp_hunter.py
@@ -25,7 +25,7 @@ class sfp_hunter(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key": "Your API key from hunter.io."
+ "api_key": "Hunter.io API key."
}
# Be sure to completely clear any class variables in setup()
diff --git a/modules/sfp_intfiles.py b/modules/sfp_intfiles.py
index 69343975..dd5f23c9 100644
--- a/modules/sfp_intfiles.py
+++ b/modules/sfp_intfiles.py
@@ -17,7 +17,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_intfiles(SpiderFootPlugin):
- """Interesting Files:Footprint:Crawling and Scanning::Identifies potential files of interest, e.g. office documents, zip files."""
+ """Interesting Files:Footprint:Crawling and Scanning:errorprone:Identifies potential files of interest, e.g. office documents, zip files."""
# Default options
diff --git a/modules/sfp_ipinfo.py b/modules/sfp_ipinfo.py
index 73081245..23d18077 100644
--- a/modules/sfp_ipinfo.py
+++ b/modules/sfp_ipinfo.py
@@ -16,7 +16,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_ipinfo(SpiderFootPlugin):
- """IPInfo.io:Footprint,Investigate,Passive:Real World::Identifies the physical location of IP addresses identified using ipinfo.io."""
+ """IPInfo.io:Footprint,Investigate,Passive:Real World:apikey:Identifies the physical location of IP addresses identified using ipinfo.io."""
# Default options
@@ -24,7 +24,7 @@ class sfp_ipinfo(SpiderFootPlugin):
"api_key": ""
}
optdescs = {
- "api_key": "Your ipinfo.io access token."
+ "api_key": "Ipinfo.io access token."
}
results = dict()
errorState = False
diff --git a/modules/sfp_isc.py b/modules/sfp_isc.py
index b4b219ce..5879af8c 100644
--- a/modules/sfp_isc.py
+++ b/modules/sfp_isc.py
@@ -27,7 +27,7 @@ malchecks = {
class sfp_isc(SpiderFootPlugin):
- """Internet Storm Center:Investigate,Passive:Reputation Systems:slow:Check if an IP is malicious according to SANS ISC."""
+ """Internet Storm Center:Investigate,Passive:Reputation Systems::Check if an IP is malicious according to SANS ISC."""
# Default options
diff --git a/modules/sfp_junkfiles.py b/modules/sfp_junkfiles.py
index b4c9db5a..95988e22 100644
--- a/modules/sfp_junkfiles.py
+++ b/modules/sfp_junkfiles.py
@@ -14,7 +14,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
import random
class sfp_junkfiles(SpiderFootPlugin):
- """Junk Files:Footprint:Crawling and Scanning:slow,invasive:Looks for old/temporary and other similar files."""
+ """Junk Files:Footprint:Crawling and Scanning:slow,errorprone,invasive:Looks for old/temporary and other similar files."""
# Default options
diff --git a/modules/sfp_malc0de.py b/modules/sfp_malc0de.py
index bdef3353..6fcdd104 100644
--- a/modules/sfp_malc0de.py
+++ b/modules/sfp_malc0de.py
@@ -25,7 +25,7 @@ malchecks = {
class sfp_malc0de(SpiderFootPlugin):
- """malc0de.com:Investigate,Passive:Reputation Systems:slow:Check if a netblock or IP is malicious according to malc0de.com."""
+ """malc0de.com:Investigate,Passive:Reputation Systems::Check if a netblock or IP is malicious according to malc0de.com."""
# Default options
diff --git a/modules/sfp_malwaredomainlist.py b/modules/sfp_malwaredomainlist.py
index d00fe21e..5dfb8b14 100644
--- a/modules/sfp_malwaredomainlist.py
+++ b/modules/sfp_malwaredomainlist.py
@@ -31,7 +31,10 @@ malchecks = {
}
class sfp_malwaredomainlist(SpiderFootPlugin):
- """malwaredomainlist.com:Investigate,Passive:Reputation Systems:slow:Check if a host/domain, IP or netblock is malicious according to malwaredomainlist.com."""
+ """malwaredomainlist.com:Investigate,Passive:Reputation Systems::Check if a host/domain, IP or netblock is malicious according to malwaredomainlist.com."""
+
+
+
# Default options
diff --git a/modules/sfp_malwaredomains.py b/modules/sfp_malwaredomains.py
index 0025700f..6632b9b8 100644
--- a/modules/sfp_malwaredomains.py
+++ b/modules/sfp_malwaredomains.py
@@ -25,7 +25,7 @@ malchecks = {
}
class sfp_malwaredomains(SpiderFootPlugin):
- """malwaredomains.com:Investigate,Passive:Reputation Systems:slow:Check if a host/domain is malicious according to malwaredomains.com."""
+ """malwaredomains.com:Investigate,Passive:Reputation Systems::Check if a host/domain is malicious according to malwaredomains.com."""
# Default options
diff --git a/modules/sfp_malwarepatrol.py b/modules/sfp_malwarepatrol.py
index b6d5299b..03d7196e 100644
--- a/modules/sfp_malwarepatrol.py
+++ b/modules/sfp_malwarepatrol.py
@@ -18,13 +18,12 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_malwarepatrol(SpiderFootPlugin):
"""MalwarePatrol:Investigate,Passive:Reputation Systems:apikey:Searches malwarepatrol.net's database of malicious URLs/IPs."""
-
# Default options
opts = {
"api_key": ""
}
optdescs = {
- "api_key": "malwarepatrol.com 'receipt' ID, provided once signing up for their open-source feed. Without this you cannot obtain their feed."
+ "api_key": "Malwarepatrol.com 'receipt' ID, provided once signing up for their open-source feed. Without this you cannot obtain their feed."
}
results = dict()
errorState = False
diff --git a/modules/sfp_multiproxy.py b/modules/sfp_multiproxy.py
index abbd7165..b38a065f 100644
--- a/modules/sfp_multiproxy.py
+++ b/modules/sfp_multiproxy.py
@@ -26,7 +26,7 @@ malchecks = {
class sfp_multiproxy(SpiderFootPlugin):
- """multiproxy.org Open Proxies:Investigate,Passive:Secondary Networks:slow:Check if an IP is an open proxy according to multiproxy.org' open proxy list."""
+ """multiproxy.org Open Proxies:Investigate,Passive:Secondary Networks::Check if an IP is an open proxy according to multiproxy.org' open proxy list."""
# Default options
diff --git a/modules/sfp_nothink.py b/modules/sfp_nothink.py
index 594175c8..4e9f644b 100644
--- a/modules/sfp_nothink.py
+++ b/modules/sfp_nothink.py
@@ -36,7 +36,10 @@ malchecks = {
}
class sfp_nothink(SpiderFootPlugin):
- """Nothink.org:Investigate,Passive:Reputation Systems:slow:Check if a host/domain, netblock or IP is malicious according to Nothink.org."""
+ """Nothink.org:Investigate,Passive:Reputation Systems::Check if a host/domain, netblock or IP is malicious according to Nothink.org."""
+
+
+
# Default options
diff --git a/modules/sfp_onioncity.py b/modules/sfp_onioncity.py
index 038b4b56..e1e6f38b 100644
--- a/modules/sfp_onioncity.py
+++ b/modules/sfp_onioncity.py
@@ -15,13 +15,13 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
import re
class sfp_onioncity(SpiderFootPlugin):
- """Onion.link:Footprint,Investigate:Search Engines::Search Tor 'Onion City' search engine for mentions of the target domain."""
+ """Onion.link:Footprint,Investigate:Search Engines:errorprone:Search Tor 'Onion City' search engine for mentions of the target domain."""
# Default options
opts = {
'pages': 20, # Number of results pages to iterate
- 'fetchlinks': False
+ 'fetchlinks': True
}
# Option descriptions
diff --git a/modules/sfp_openbugbounty.py b/modules/sfp_openbugbounty.py
index a8bba99f..56c7e7db 100644
--- a/modules/sfp_openbugbounty.py
+++ b/modules/sfp_openbugbounty.py
@@ -17,7 +17,8 @@ import json
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_openbugbounty(SpiderFootPlugin):
- """Open Bug Bounty:Footprint,Investigate,Passive:Leaks, Dumps and Breaches:errorprone:Check external vulnerability scanning/reporting service openbugbounty.org to see if the target is listed."""
+ """Open Bug Bounty:Footprint,Investigate,Passive:Leaks, Dumps and Breaches::Check external vulnerability scanning/reporting service openbugbounty.org to see if the target is listed."""
+
# Default options
diff --git a/modules/sfp_phishtank.py b/modules/sfp_phishtank.py
index 44408311..123daa81 100644
--- a/modules/sfp_phishtank.py
+++ b/modules/sfp_phishtank.py
@@ -26,7 +26,7 @@ malchecks = {
class sfp_phishtank(SpiderFootPlugin):
- """PhishTank:Investigate,Passive:Reputation Systems:slow:Check if a host/domain is malicious according to PhishTank."""
+ """PhishTank:Investigate,Passive:Reputation Systems::Check if a host/domain is malicious according to PhishTank."""
# Default options
diff --git a/modules/sfp_riskiq.py b/modules/sfp_riskiq.py
index 1c99a019..08ae1378 100644
--- a/modules/sfp_riskiq.py
+++ b/modules/sfp_riskiq.py
@@ -32,8 +32,8 @@ class sfp_riskiq(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key_login": "Your RiskIQ login",
- "api_key_password": "Your RiskIQ API key",
+ "api_key_login": "RiskIQ login.",
+ "api_key_password": "RiskIQ API Key.",
"verify": "Verify co-hosts are valid by checking if they still resolve to the shared IP.",
"cohostsamedomain": "Treat co-hosted sites on the same target domain as co-hosting?"
}
@@ -181,9 +181,6 @@ class sfp_riskiq(SpiderFootPlugin):
t = "NETBLOCK_OWNER"
else:
t = "AFFILIATE_DOMAIN"
- # Skip IPv6
- if ":" in r['domain']:
- continue
e = SpiderFootEvent(t, r['domain'], self.__name__, event)
self.notifyListeners(e)
return None
diff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.py
index 516edcdd..05e746c7 100644
--- a/modules/sfp_robtex.py
+++ b/modules/sfp_robtex.py
@@ -19,7 +19,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_robtex(SpiderFootPlugin):
- """Robtex:Footprint,Investigate,Passive:Passive DNS:errorprone:Search Robtex.com for hosts sharing the same IP."""
+ """Robtex:Footprint,Investigate,Passive:Passive DNS::Search Robtex.com for hosts sharing the same IP."""
# Default options
diff --git a/modules/sfp_securitytrails.py b/modules/sfp_securitytrails.py
index 3ea973c7..fa6100aa 100644
--- a/modules/sfp_securitytrails.py
+++ b/modules/sfp_securitytrails.py
@@ -30,7 +30,7 @@ class sfp_securitytrails(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key": "Your SecurityTrails API key",
+ "api_key": "SecurityTrails API key.",
"verify": "Verify co-hosts are valid by checking if they still resolve to the shared IP.",
"cohostsamedomain": "Treat co-hosted sites on the same target domain as co-hosting?"
}
diff --git a/modules/sfp_shodan.py b/modules/sfp_shodan.py
index 6a0105af..7c1d55a9 100644
--- a/modules/sfp_shodan.py
+++ b/modules/sfp_shodan.py
@@ -28,7 +28,7 @@ class sfp_shodan(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key": "Your SHODAN API Key.",
+ "api_key": "SHODAN API Key.",
'netblocklookup': "Look up all IPs on netblocks deemed to be owned by your target for possible hosts on the same target subdomain/domain?",
'maxnetblock': "If looking up owned netblocks, the maximum netblock size to look up all IPs within (CIDR value, 24 = /24, 16 = /16, etc.)"
}
diff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.py
index 5c8449cb..0116547f 100644
--- a/modules/sfp_socialprofiles.py
+++ b/modules/sfp_socialprofiles.py
@@ -29,7 +29,7 @@ sites = {
class sfp_socialprofiles(SpiderFootPlugin):
- """Social Media Profiles:Footprint,Passive:Social Media:errorprone:Identify the social media profiles for human names identified."""
+ """Social Media Profiles:Footprint,Passive:Social Media:slow,errorprone:Identify the social media profiles for human names identified."""
# Default options
diff --git a/modules/sfp_spider.py b/modules/sfp_spider.py
index 95819254..04aa233c 100644
--- a/modules/sfp_spider.py
+++ b/modules/sfp_spider.py
@@ -15,7 +15,7 @@ import time
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_spider(SpiderFootPlugin):
- """Spider:Footprint,Investigate:Crawling and Scanning:slow,invasive:Spidering of web-pages to extract content for searching."""
+ """Spider:Footprint,Investigate:Crawling and Scanning:slow:Spidering of web-pages to extract content for searching."""
# Default options
diff --git a/modules/sfp_threatexpert.py b/modules/sfp_threatexpert.py
index dfed9b0e..6dd1bf9c 100644
--- a/modules/sfp_threatexpert.py
+++ b/modules/sfp_threatexpert.py
@@ -27,7 +27,12 @@ malchecks = {
class sfp_threatexpert(SpiderFootPlugin):
- """ThreatExpert.com:Investigate,Passive:Reputation Systems:slow:Check if a host/domain or IP is malicious according to ThreatExpert.com."""
+ """ThreatExpert.com:Investigate,Passive:Reputation Systems::Check if a host/domain or IP is malicious according to ThreatExpert.com."""
+
+
+
+
+
# Default options
diff --git a/modules/sfp_torch.py b/modules/sfp_torch.py
index 1f7fdd7f..b8043df5 100644
--- a/modules/sfp_torch.py
+++ b/modules/sfp_torch.py
@@ -15,7 +15,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
import re
class sfp_torch(SpiderFootPlugin):
- """TORCH:Footprint,Investigate:Search Engines::Search Tor 'TORCH' search engine for mentions of the target domain."""
+ """TORCH:Footprint,Investigate:Search Engines:errorprone:Search Tor 'TORCH' search engine for mentions of the target domain."""
# Default options
diff --git a/modules/sfp_torexits.py b/modules/sfp_torexits.py
index a735b72a..5d3401a7 100644
--- a/modules/sfp_torexits.py
+++ b/modules/sfp_torexits.py
@@ -26,7 +26,7 @@ malchecks = {
class sfp_torexits(SpiderFootPlugin):
- """TOR Exit Nodes:Investigate,Passive:Secondary Networks:slow:Check if an IP or netblock appears on the torproject.org exit node list."""
+ """TOR Exit Nodes:Investigate,Passive:Secondary Networks::Check if an IP or netblock appears on the torproject.org exit node list."""
# Default options
diff --git a/modules/sfp_torserver.py b/modules/sfp_torserver.py
index 9387e7cc..3c72552c 100644
--- a/modules/sfp_torserver.py
+++ b/modules/sfp_torserver.py
@@ -25,7 +25,7 @@ malchecks = {
class sfp_torserver(SpiderFootPlugin):
- """TOR Servers:Investigate,Passive:Secondary Networks:slow:Check if an IP or netblock appears on the blutmagie.de TOR server list."""
+ """TOR Servers:Investigate,Passive:Secondary Networks::Check if an IP or netblock appears on the blutmagie.de TOR server list."""
# Default options
diff --git a/modules/sfp_totalhash.py b/modules/sfp_totalhash.py
index fabda1be..454b4223 100644
--- a/modules/sfp_totalhash.py
+++ b/modules/sfp_totalhash.py
@@ -27,7 +27,7 @@ malchecks = {
class sfp_totalhash(SpiderFootPlugin):
- """TotalHash.com:Investigate,Passive:Reputation Systems:slow:Check if a host/domain or IP is malicious according to TotalHash.com."""
+ """TotalHash.com:Investigate,Passive:Reputation Systems::Check if a host/domain or IP is malicious according to TotalHash.com."""
# Default options
diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.py
index 9d043127..91898218 100644
--- a/modules/sfp_virustotal.py
+++ b/modules/sfp_virustotal.py
@@ -34,7 +34,7 @@ class sfp_virustotal(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key": "Your VirusTotal API Key.",
+ "api_key": "VirusTotal API Key.",
"publicapi": "Are you using a public key? If so SpiderFoot will pause for 15 seconds after each query to avoid VirusTotal dropping requests.",
"checkcohosts": "Check co-hosted sites?",
"checkaffiliates": "Check affiliates?",
diff --git a/modules/sfp_voipbl.py b/modules/sfp_voipbl.py
index 925b65bf..4cb7cda0 100644
--- a/modules/sfp_voipbl.py
+++ b/modules/sfp_voipbl.py
@@ -26,7 +26,12 @@ malchecks = {
class sfp_voipbl(SpiderFootPlugin):
- """VoIPBL OpenPBX IPs:Investigate,Passive:Reputation Systems:slow:Check if an IP or netblock is an open PBX according to VoIPBL OpenPBX IPs."""
+ """VoIPBL OpenPBX IPs:Investigate,Passive:Reputation Systems::Check if an IP or netblock is an open PBX according to VoIPBL OpenPBX IPs."""
+
+
+
+
+
# Default options
diff --git a/modules/sfp_vxvault.py b/modules/sfp_vxvault.py
index a01defc3..ab977027 100644
--- a/modules/sfp_vxvault.py
+++ b/modules/sfp_vxvault.py
@@ -26,7 +26,7 @@ malchecks = {
class sfp_vxvault(SpiderFootPlugin):
- """VXVault.net:Investigate,Passive:Reputation Systems:slow:Check if a domain or IP is malicious according to VXVault.net."""
+ """VXVault.net:Investigate,Passive:Reputation Systems::Check if a domain or IP is malicious according to VXVault.net."""
# Default options
diff --git a/modules/sfp_watchguard.py b/modules/sfp_watchguard.py
index e7733585..d629706f 100644
--- a/modules/sfp_watchguard.py
+++ b/modules/sfp_watchguard.py
@@ -27,7 +27,12 @@ malchecks = {
class sfp_watchguard(SpiderFootPlugin):
- """Watchguard:Investigate,Passive:Reputation Systems:slow:Check if an IP is malicious according to Watchguard's reputationauthority.org."""
+ """Watchguard:Investigate,Passive:Reputation Systems::Check if an IP is malicious according to Watchguard's reputationauthority.org."""
+
+
+
+
+
# Default options
diff --git a/modules/sfp_wigle.py b/modules/sfp_wigle.py
index dd9b0287..b3aed14c 100644
--- a/modules/sfp_wigle.py
+++ b/modules/sfp_wigle.py
@@ -16,7 +16,7 @@ import urllib
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_wigle(SpiderFootPlugin):
- """Wigle.net:Footprint,Investigate,Passive:Secondary Networks::Query wigle.net to identify nearby WiFi access points."""
+ """Wigle.net:Footprint,Investigate,Passive:Secondary Networks:apikey:Query wigle.net to identify nearby WiFi access points."""
# Default options
@@ -28,7 +28,7 @@ class sfp_wigle(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "api_key_encoded": "Your Base64-encoded API name/token pair, as provided on your Wigle.net account page.",
+ "api_key_encoded": "Wigle.net base64-encoded API name/token pair.",
"days_limit": "Maximum age of data to be considered valid.",
"variance": "How tightly to bound queries against the latitude/longitude box extracted from idenified addresses. This value must be between 0.001 and 0.2."
diff --git a/modules/sfp_wikileaks.py b/modules/sfp_wikileaks.py
index d8815548..8eb1220e 100644
--- a/modules/sfp_wikileaks.py
+++ b/modules/sfp_wikileaks.py
@@ -17,7 +17,8 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_wikileaks(SpiderFootPlugin):
- """Wikileaks:Footprint,Investigate,Passive:Leaks, Dumps and Breaches:errorprone:Search Wikileaks for mentions of domain names and e-mail addresses."""
+ """Wikileaks:Footprint,Investigate,Passive:Leaks, Dumps and Breaches::Search Wikileaks for mentions of domain names and e-mail addresses."""
+
# Default options
diff --git a/modules/sfp_xforce.py b/modules/sfp_xforce.py
index f97020ab..129e717f 100644
--- a/modules/sfp_xforce.py
+++ b/modules/sfp_xforce.py
@@ -35,8 +35,8 @@ class sfp_xforce(SpiderFootPlugin):
# Option descriptions
optdescs = {
- "xforce_api_key": "The X-Force Exchange API Key",
- "xforce_api_key_password": "The X-Force Exchange API Password",
+ "xforce_api_key": "X-Force Exchange API Key.",
+ "xforce_api_key_password": "X-Force Exchange API Password.",
"age_limit_days": "Ignore any records older than this many days. 0 = unlimited.",
'netblocklookup': "Look up all IPs on netblocks deemed to be owned by your target for possible blacklisted hosts on the same target subdomain/domain?",
'maxnetblock': "If looking up owned netblocks, the maximum netblock size to look up all IPs within (CIDR value, 24 = /24, 16 = /16, etc.)",