Added notification message if CAPTCHAs are received

master
Andrew Chiles 2017-03-03 10:54:53 +01:00
parent 3afa76d67e
commit 5ef5b9df81
2 changed files with 9 additions and 4 deletions

View File

@ -112,7 +112,7 @@ Search for available domains with search term of "dog" and max results of 100
- Domain: Target Domain
- Birth: First seen on Archive.org
- Entries:
- Entries: Number of entries in Archive.org
- TLDs Available: Top level top available
- Bluecoat Categorization: Bluecoat category
- IBM-xForce Categorization: IBM-xForce category

View File

@ -5,10 +5,10 @@
## Description: Checks expired domains, bluecoat categorization, and Archive.org history to determine
## good candidates for phishing and C2 domain names
# To-do:
# To-do:
# Python 3 support
# Add reputation categorizations to identify desireable vs undesireable domains
# Code cleanup/optimization
# Read in list of desired domain names
# Add Authenticated "Members-Only" option to download CSV/txt (https://member.expireddomains.net/domains/expiredcom/)
import time
@ -36,6 +36,11 @@ def checkBluecoat(domain):
else:
soupA = BeautifulSoup(responseJson['categorization'], 'lxml')
a = soupA.find("a").text
# Print notice if CAPTCHAs are blocking accurate results
if a == 'captcha':
print('[-] Error: Blue Coat CAPTCHA received. Change your IP or manually solve a CAPTCHA at "https://sitereview.bluecoat.com/sitereview.jsp"')
#raw_input('[*] Press Enter to continue...')
return a
except:
@ -272,7 +277,7 @@ If you plan to use this content for illegal purpose, don't. Have a nice day :)'
domains = [line.rstrip('\r\n') for line in open(inputfile, "r")]
except IOError:
print '[-] Error: {} does not appear to exist.'.format(inputfile)
print '[-] Error: "{}" does not appear to exist.'.format(inputfile)
exit()
print('[*] Domains loaded: {}').format(len(domains))