Skip to content

Commit 005e877

Browse files
committed
Updates
1 parent ba893ea commit 005e877

19 files changed

Lines changed: 16819 additions & 218 deletions

brute-domain-tld

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def brute_ns(domain):
3939
except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer, dns.resolver.NoNameservers):
4040
#sys.stderr.write('%s => No record found.\n' % (domain))
4141
pass
42+
except dns.name.EmptyLabel:
43+
sys.stderr.write('%s => A DNS label is empty.\n' % (domain))
4244
except dns.resolver.Timeout:
4345
attempt += 1
4446
if attempt == max_attempts:
@@ -92,10 +94,10 @@ if __name__ == '__main__':
9294
nameserver = args.nameserver
9395

9496
with open(args.wordlist) as fp:
95-
wordlist = [line.strip().lower() for line in fp if len(line)>0 and line[0] is not '#']
97+
wordlist = [line.strip().lower() for line in fp if len(line.strip())>0 and line[0] is not '#']
9698

9799
try:
98-
domains = [line.strip() for line in args.file]
100+
domains = [line.strip().lower() for line in args.file if len(line.strip())>0 and line[0] is not '#']
99101
except KeyboardInterrupt:
100102
exit()
101103

0 commit comments

Comments
 (0)