Skip to content

Commit

Permalink
sfp_similar: Check for wildcard DNS on TLDs before checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
smicallef committed Feb 21, 2023
1 parent 5572dde commit d780b7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/sfp_similar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -113,6 +115,10 @@ def handleEvent(self, event):

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
Expand Down

0 comments on commit d780b7f

Please sign in to comment.