Skip to content

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

sfp_similar: Check for wildcard DNS on TLDs before checking.

smicallefd780b7f61819
diff --git a/modules/sfp_similar.py b/modules/sfp_similar.py
index 4994977f..1315cff4 100644
--- a/modules/sfp_similar.py
+++ b/modules/sfp_similar.py
@@ -70,10 +70,12 @@ class sfp_similar(SpiderFootPlugin):
# Default options
opts = {
+ 'skipwildcards': True
}
# Option descriptions
optdescs = {
+ 'skipwildcards': "Skip TLDs and sub-TLDs that have wildcard DNS."
}
# Internal results tracking
@@ -113,6 +115,10 @@ class sfp_similar(SpiderFootPlugin):
self.results[dom] = True
+ # Check if the TLD has wildcards before testing
+ if self.opts['skipwildcards'] and self.sf.checkDnsWildcard(tld[1:]):
+ return
+
domlist = list()
# Search for typos