Update turbolist3r.py
This commit is contained in:
parent
5503bf5687
commit
cf4c0ca37d
|
|
@ -26,12 +26,6 @@ import socket
|
||||||
import time
|
import time
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
from prettytable import PrettyTable
|
from prettytable import PrettyTable
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# external modules
|
# external modules
|
||||||
# from subbrute import subbrute
|
# from subbrute import subbrute
|
||||||
import dns.resolver
|
import dns.resolver
|
||||||
|
|
@ -1168,12 +1162,10 @@ if __name__ == "__main__":
|
||||||
# if the query did not return an error, then add result to appropriate array
|
# if the query did not return an error, then add result to appropriate array
|
||||||
if rtype != "ERROR":
|
if rtype != "ERROR":
|
||||||
if rtype == "CNAME":
|
if rtype == "CNAME":
|
||||||
#cnames.append(name + " -->-- " + record)
|
|
||||||
i = [name,record]
|
i = [name,record]
|
||||||
cnametable.add_row(i)
|
cnametable.add_row(i)
|
||||||
|
|
||||||
elif rtype == "A":
|
elif rtype == "A":
|
||||||
#ahosts.append(name + " -->-- " + record)
|
|
||||||
i = [name,record]
|
i = [name,record]
|
||||||
atable.add_row(i)
|
atable.add_row(i)
|
||||||
# round robin the resolvers
|
# round robin the resolvers
|
||||||
|
|
@ -1193,7 +1185,6 @@ if __name__ == "__main__":
|
||||||
# Known errors: subdomain sample starting with a dot, ex .domain.com
|
# Known errors: subdomain sample starting with a dot, ex .domain.com
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
print cnames
|
print cnames
|
||||||
print cnametable
|
print cnametable
|
||||||
|
|
||||||
|
|
@ -1201,7 +1192,6 @@ if __name__ == "__main__":
|
||||||
print atable
|
print atable
|
||||||
# output analysis results to console
|
# output analysis results to console
|
||||||
|
|
||||||
|
|
||||||
if (analysisfile!=None):
|
if (analysisfile!=None):
|
||||||
# save the analysis to a file. Merge the arrays into one list for easier reading
|
# save the analysis to a file. Merge the arrays into one list for easier reading
|
||||||
result = ahosts + "\n" + str(atable) + "\n" + cnames + "\n" + str(cnametable) + "\n"
|
result = ahosts + "\n" + str(atable) + "\n" + cnames + "\n" + str(cnametable) + "\n"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue