Skip to content

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

A little bit smarter handling "." in names.

smicallef02362ba3d1ed
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.py
index f4fc0ff9..98eaae7b 100644
--- a/modules/sfp_accounts.py
+++ b/modules/sfp_accounts.py
@@ -102,6 +102,10 @@ class sfp_accounts(SpiderFootPlugin):
self.siteResults[retname] = False
return
+ if res['code'].startswith("4") or res['code'].startswith("5"):
+ self.siteResults[retname] = False
+ return
+
try:
found = False
site['account_existence_code'] = str(site['account_existence_code'])
@@ -125,6 +129,13 @@ class sfp_accounts(SpiderFootPlugin):
if name not in res['content']:
found = False
+ # Some sites can't handle periods so treat bob.abc and bob as the same
+ if found and "." in name:
+ firstname = name.split(".")[0]
+
+ if firstname + "<" in res['content'] or firstname + '"' in res['content']:
+ found = False
+
self.siteResults[retname] = found
def threadSites(self, name, siteList):