Skip to content

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

Logic fixes.

smicallef89649348fb6f
diff --git a/modules/sfp_intfiles.py b/modules/sfp_intfiles.py
index b547ba20..0489f2b2 100644
--- a/modules/sfp_intfiles.py
+++ b/modules/sfp_intfiles.py
@@ -73,6 +73,10 @@ class sfp_intfiles(SpiderFootPlugin):
for fileExt in self.opts['fileexts']:
if "." + fileExt.lower() in eventData.lower():
+ if eventData in self.results:
+ continue
+ else:
+ self.results.append(eventData)
evt = SpiderFootEvent("INTERESTING_FILE", eventData, self.__name__)
self.notifyListeners(evt)
diff --git a/modules/sfp_sharedip.py b/modules/sfp_sharedip.py
index 1c9095d8..c2f88fd7 100644
--- a/modules/sfp_sharedip.py
+++ b/modules/sfp_sharedip.py
@@ -112,6 +112,15 @@ class sfp_sharedip(SpiderFootPlugin):
sf.info("Found something on same IP: " + m)
if not self.opts['cohostsamedomain'] and m.endswith(self.baseDomain):
sf.debug("Skipping " + m + " because it is on the same domain.")
+ continue
+
+ if '*' in m:
+ sf.debug("Skipping wildcard name: " + m)
+ continue
+
+ if '.' not in m:
+ sf.debug("Skipping tld: " + m)
+ continue
if m not in myres and m != eventData:
if self.opts['verify'] and not self.validateIP(m, eventData):