Skip to content

Commit f6e7466

Browse files
authored
Merge pull request #43 from bulbafett/patch-1
Fixes the str to int concatenation error
2 parents 5ecc598 + ad7105f commit f6e7466

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reconnoitre/find_dns.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ def find_dns(target_hosts, output_directory, quiet):
99
check_directory(output_directory)
1010
results = 0
1111
hostcount = 0
12-
12+
dnscount = 0
13+
1314
output_file = open(output_directory + "/DNS-Detailed.txt", 'w')
1415
output_targets = open(output_directory + "/DNS-targets.txt", 'w')
1516

@@ -37,7 +38,7 @@ def find_dns(target_hosts, output_directory, quiet):
3738
output_file.write("[*] Found DNS service running on: %s\n" % (ip_address))
3839
output_file.write(" [>] %s\n" % (line))
3940
output_targets.write("%s" % (ip_address))
40-
results += 1
41-
print("[*] Found %s DNS servers within %s hosts" % (str(results), str(hostcount)))
41+
dnscount += 1
42+
print("[*] Found %s DNS servers within %s hosts" % (str(dnscount), str(hostcount)))
4243
output_file.close()
43-
output_targets.close()
44+
output_targets.close()

0 commit comments

Comments
 (0)