Skip to content

Commit 7d1afbe

Browse files
committed
Spotted minor issue with line duplication for dns sweeping.
1 parent b067bdc commit 7d1afbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

find_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def find_dns(target_hosts, output_directory, quiet):
3333
for line in lines:
3434
line = line.strip()
3535
line = line.rstrip()
36-
if ("53/tcp" in line) and ("open" in line):
36+
if ("53/tcp" in line) and ("open" in line) and ("Discovered" not in line):
3737
print(" [=] Found DNS service running on: %s" % (ip_address))
3838
output_file.write("[*] Found DNS service running on: %s\n" % (ip_address))
3939
output_file.write(" [>] %s\n" % (line))

0 commit comments

Comments
 (0)