Last active
January 4, 2018 08:17
-
-
Save codeofdusk/db25b9a8e392abf40bd82dcd5dab4a94 to your computer and use it in GitHub Desktop.
Python program that uses validate_email from PyPI to brute-force search for emails. Will take about three days. See https://www.reddit.com/r/Python/comments/7o0n5u/need_help_with_a_python_program_to_retrieve_my/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from validate_email import validate_email | |
count=0 | |
# Get space to search | |
s = [str(i).zfill(5) for i in xrange(99999)] | |
start=time.time() | |
print "Searching " + str(len(s)) + " combinations..." | |
with open("matches.txt","w") as cam: | |
for i in s: | |
# Build the email here, to use for both scanning and display. | |
e = "danielstiel" + i + "@gmail.com" | |
if validate_email(e,verify=True): | |
print "Match: " + e | |
count+=1 | |
cam.write(e+"\r\n") | |
else: | |
print "Fail: " + e | |
end=time.time() | |
print "Found " + str(count) + " matches in " + str(end-start) + " seconds. Wrote matches to matches.txt." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment