Skip to content

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

Filtering of rubbish links.

smicallef9d75ba8b2aba
diff --git a/modules/sfp_subdomain.py b/modules/sfp_subdomain.py
index d06c2186..9a7d74b2 100644
--- a/modules/sfp_subdomain.py
+++ b/modules/sfp_subdomain.py
@@ -60,6 +60,10 @@ class sfp_subdomain(SpiderFootPlugin):
return None
for match in matches:
+ # Skip URL encoded /
+ if match.startswith("2F") or match.startswith("2f"):
+ continue
+
sf.debug("Found sub-domain: " + match)
if self.results.has_key(match):
continue
diff --git a/sflib.py b/sflib.py
index 067e263b..6c50d7b4 100644
--- a/sflib.py
+++ b/sflib.py
@@ -312,7 +312,7 @@ class SpiderFoot:
# Don't include stuff likely part of some dynamically built incomplete
# URL found in Javascript code (character is part of some logic)
- if link[len(link)-1] == '.' or link[0] == '+':
+ if link[len(link)-1] == '.' or link[0] == '+' or 'javascript:' in link or '();' in link:
self.debug('unlikely link: ' + link)
continue