Skip to content

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

Bug fixes.

smicallef3fe918aa7330
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.py
index ebd83ab9..6d3e6349 100644
--- a/modules/sfp_accounts.py
+++ b/modules/sfp_accounts.py
@@ -106,10 +106,11 @@ class sfp_accounts(SpiderFootPlugin):
self.siteResults[retname] = False
return
- if res['code'].startswith("4") or res['code'].startswith("5"):
- with self.lock:
- self.siteResults[retname] = False
- return
+ if res['code']:
+ if res['code'].startswith("4") or res['code'].startswith("5"):
+ with self.lock:
+ self.siteResults[retname] = False
+ return
try:
found = False
diff --git a/modules/sfp_commoncrawl.py b/modules/sfp_commoncrawl.py
index b8fe631e..5ca875ab 100644
--- a/modules/sfp_commoncrawl.py
+++ b/modules/sfp_commoncrawl.py
@@ -146,6 +146,7 @@ class sfp_commoncrawl(SpiderFootPlugin):
self.sf.error("Unable to obtain content from CommonCrawl.", False)
return None
+ sent = list()
for content in data:
try:
for line in content.split("\n"):
@@ -157,6 +158,10 @@ class sfp_commoncrawl(SpiderFootPlugin):
link = json.loads(line)
if 'url' not in link:
continue
+ if link['url'] in sent:
+ continue
+ sent.append(link['url'])
+
evt = SpiderFootEvent("LINKED_URL_INTERNAL", link['url'],
self.__name__, event)
self.notifyListeners(evt)
diff --git a/modules/sfp_onioncity.py b/modules/sfp_onioncity.py
index 38691256..7ac9234a 100644
--- a/modules/sfp_onioncity.py
+++ b/modules/sfp_onioncity.py
@@ -107,7 +107,7 @@ class sfp_onioncity(SpiderFootPlugin):
timeout=self.opts["_fetchtimeout"],
useragent=self.opts["_useragent"],
)
- if response['code'].startswith('2'):
+ if response['code'] in [ "200", "201", "202" ]:
evt = SpiderFootEvent(
"RAW_RIR_DATA", response["content"], self.__name__, event
)
diff --git a/modules/sfp_viewdns.py b/modules/sfp_viewdns.py
index 225c5562..320fe920 100644
--- a/modules/sfp_viewdns.py
+++ b/modules/sfp_viewdns.py
@@ -52,7 +52,7 @@ class sfp_viewdns(SpiderFootPlugin):
# What events is this module interested in for input
def watchedEvents(self):
- return ["EMAILADDR", "HUMAN_NAME", "IP_ADDRESS", "PROVIDER_DNS"]
+ return ["EMAILADDR", "IP_ADDRESS", "PROVIDER_DNS"]
# What events this module produces
def producedEvents(self):
@@ -136,7 +136,7 @@ class sfp_viewdns(SpiderFootPlugin):
self.results[eventData] = True
valkey = ""
- if eventName in [ "HUMAN_NAME", "EMAILADDR" ]:
+ if eventName == "EMAILADDR":
ident = "reversewhois"
valkey = "domain"
if eventName == "IP_ADDRESS":
@@ -166,7 +166,7 @@ class sfp_viewdns(SpiderFootPlugin):
continue
if h.lower() in [ "demo1.com", "demo2.com", "demo3.com", "demo4.com", "demo5.com" ]:
continue
- if eventName in [ "HUMAN_NAME", "EMAILADDR" ]:
+ if eventName == "EMAILADDR":
e = SpiderFootEvent("AFFILIATE_INTERNET_NAME", h, self.__name__, event)
if self.sf.isDomain(h, self.opts['_internettlds']):
diff --git a/modules/sfp_whoisology.py b/modules/sfp_whoisology.py
index 179990b3..7920ffee 100644
--- a/modules/sfp_whoisology.py
+++ b/modules/sfp_whoisology.py
@@ -44,7 +44,7 @@ class sfp_whoisology(SpiderFootPlugin):
# What events is this module interested in for input
def watchedEvents(self):
- return ["EMAILADDR", "HUMAN_NAME"]
+ return ["EMAILADDR"]
# What events this module produces
def producedEvents(self):
@@ -107,12 +107,7 @@ class sfp_whoisology(SpiderFootPlugin):
else:
self.results[eventData] = True
- if eventName == "HUMAN_NAME":
- ident = "name"
- if eventName == "EMAILADDR":
- ident = "email"
-
- rec = self.query(eventData, ident)
+ rec = self.query(eventData, "email")
myres = list()
if rec is not None:
for r in rec:
diff --git a/modules/sfp_whoxy.py b/modules/sfp_whoxy.py
index 3ba354fc..9304d220 100644
--- a/modules/sfp_whoxy.py
+++ b/modules/sfp_whoxy.py
@@ -44,7 +44,7 @@ class sfp_whoxy(SpiderFootPlugin):
# What events is this module interested in for input
def watchedEvents(self):
- return ["EMAILADDR", "HUMAN_NAME"]
+ return ["EMAILADDR"]
# What events this module produces
def producedEvents(self):
@@ -115,12 +115,7 @@ class sfp_whoxy(SpiderFootPlugin):
else:
self.results[eventData] = True
- if eventName == "HUMAN_NAME":
- ident = "name"
- if eventName == "EMAILADDR":
- ident = "email"
-
- rec = self.query(eventData, ident)
+ rec = self.query(eventData, "email")
myres = list()
if rec is not None:
for r in rec: