Skip to content

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

sfp_accounts: Updated to handle https://github.com/WebBreacher/WhatsMyName/issues/738

smicallef12ab8f2f8c0e
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.py
index f5b7b5b2..65086002 100644
--- a/modules/sfp_accounts.py
+++ b/modules/sfp_accounts.py
@@ -90,7 +90,7 @@ class sfp_accounts(SpiderFootPlugin):
self.sf.cachePut("sfaccountsv2", content)
try:
- self.sites = [site for site in json.loads(content)['sites'] if site['valid']]
+ self.sites = [site for site in json.loads(content)['sites'] if not site.get('valid', True) == False]
except Exception as e:
self.error(f"Unable to parse social media accounts list: {e}")
self.errorState = True