Skip to content

Commit

Permalink
Merge pull request #34 from PatchByte/master
Browse files Browse the repository at this point in the history
Added blacklisted domains
  • Loading branch information
mrh0wl committed Apr 1, 2021
2 parents 17094ee + e8790c1 commit 032751f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions blacklistdomains
@@ -0,0 +1,17 @@
accounts.google.
mail.google.
books.google.
book.gooogle.
adp.google.
adsense.google.
adservice.google.
adssettings.google.
adwords.google.
ampcid.google.
apps.google.
archive.google.
assistant.google.
base.google.
blogsearch.google.
www.blogsearch.google.
chrome.google.
11 changes: 11 additions & 0 deletions lib/tools/sublist3r.py
Expand Up @@ -967,8 +967,18 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e

subdomains = search_list.union(bruteforce_list)

#blacklist of domains
blacklistedDomainsFile = open("./blacklistdomains", "r")
blacklistEntry = blacklistedDomainsFile.readlines()
blacklistedDomainsFile.close()

if subdomains:
subdomains = sorted(subdomains, key=subdomain_sorting_key)
for bsubdomain in blacklistEntry:
for wsubdomain in subdomains:
if str(wsubdomain).startswith(str(bsubdomain.replace("\n", ""))):
subdomains.remove(wsubdomain)
print(tab*2 + info + "Removing "+wsubdomain+" "+f"({R}blacklisted{W})")

if savefile:
write_file(savefile, subdomains)
Expand All @@ -986,6 +996,7 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
elif not silent:
for subdomain in subdomains:
try:
#print(subdomain)
isCloud = ISPCheck(subdomain)
ipsub = socket.gethostbyname(str(subdomain))
resultPrint = (tab*2 + good + subdomain + f" ({G + ipsub + W})")
Expand Down

0 comments on commit 032751f

Please sign in to comment.