added counter

master
Joe Vest 2018-10-04 11:50:32 -05:00
parent 4be8c803eb
commit 04f222fc17
1 changed files with 5 additions and 1 deletions

View File

@ -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 = []
[domain_list_unique.append(item) for item in domain_list if item not in 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: for domain_entry in domain_list_unique:
domain = domain_entry[0] domain = domain_entry[0]
birthdate = domain_entry[1] 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 # Perform domain reputation checks
if check: if check:
print("[*] Domain {} of {}".format(str(index),str(len(domain_list))))
bluecoat = checkBluecoat(domain) bluecoat = checkBluecoat(domain)
print("[+] {}: {}".format(domain, bluecoat)) print("[+] {}: {}".format(domain, bluecoat))
ibmxforce = checkIBMXForce(domain) 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"): 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]) data.append([domain,birthdate,archiveentries,availabletlds,status,bluecoat,ibmxforce,ciscotalos])
index += 1
# Sort domain list by column 2 (Birth Year) # Sort domain list by column 2 (Birth Year)
sortedDomains = sorted(data, key=lambda x: x[1], reverse=True) sortedDomains = sorted(data, key=lambda x: x[1], reverse=True)