Skip to content

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

sfp_company: Cleanup (#1361)

bcolesf76a99408f94
diff --git a/modules/sfp_company.py b/modules/sfp_company.py
index 2a4804bf..242a169d 100644
--- a/modules/sfp_company.py
+++ b/modules/sfp_company.py
@@ -26,13 +26,10 @@ class sfp_company(SpiderFootPlugin):
'categories': ["Content Analysis"]
}
- # Default options
opts = {
- # options specific to this module
'filterjscss': True
}
- # Option descriptions
optdescs = {
'filterjscss': "Filter out company names that originated from CSS/JS content. Enabling this avoids detection of popular Javascript and web framework author company names."
}
@@ -50,8 +47,6 @@ class sfp_company(SpiderFootPlugin):
"AFFILIATE_DOMAIN_WHOIS", "AFFILIATE_WEB_CONTENT"]
# What events this module produces
- # This is to support the end user in selecting modules based on events
- # produced.
def producedEvents(self):
return ["COMPANY_NAME", "AFFILIATE_COMPANY_NAME"]
@@ -145,11 +140,12 @@ class sfp_company(SpiderFootPlugin):
fullcompany = re.sub(r"\s+", " ", fullcompany.strip())
self.sf.info("Found company name: " + fullcompany)
+
if fullcompany in myres:
self.sf.debug("Already found from this source.")
continue
- else:
- myres.append(fullcompany)
+
+ myres.append(fullcompany)
if "AFFILIATE_" in eventName:
etype = "AFFILIATE_COMPANY_NAME"