From 04f222fc17d9baaf98fb088a3d19f7570dae4ff5 Mon Sep 17 00:00:00 2001 From: Joe Vest Date: Thu, 4 Oct 2018 11:50:32 -0500 Subject: [PATCH] added counter --- domainhunter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/domainhunter.py b/domainhunter.py index d949c6e..e81b6de 100644 --- a/domainhunter.py +++ b/domainhunter.py @@ -639,6 +639,8 @@ If you plan to use this content for illegal purpose, don't. Have a nice day :)' domain_list_unique = [] [domain_list_unique.append(item) for item in domain_list if item not in domain_list_unique] + index = 1 + for domain_entry in domain_list_unique: domain = domain_entry[0] birthdate = domain_entry[1] @@ -651,7 +653,7 @@ If you plan to use this content for illegal purpose, don't. Have a nice day :)' # Perform domain reputation checks if check: - + print("[*] Domain {} of {}".format(str(index),str(len(domain_list)))) bluecoat = checkBluecoat(domain) print("[+] {}: {}".format(domain, bluecoat)) ibmxforce = checkIBMXForce(domain) @@ -671,6 +673,8 @@ If you plan to use this content for illegal purpose, don't. Have a nice day :)' if not ((bluecoat in ('Uncategorized','badurl','Suspicious','Malicious Sources/Malnets','captcha','Phishing')) and ibmxforce == "Not found." and ciscotalos == "Uncategorized"): data.append([domain,birthdate,archiveentries,availabletlds,status,bluecoat,ibmxforce,ciscotalos]) + index += 1 + # Sort domain list by column 2 (Birth Year) sortedDomains = sorted(data, key=lambda x: x[1], reverse=True)