Created
May 21, 2016 19:20
-
-
Save icecoldfire/6702bc6e99ef6c8cf1c1cd5ec66951a8 to your computer and use it in GitHub Desktop.
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 urllib2, urllib, itertools | |
from tqdm import tqdm #The first is the var name the second is the value | |
for i in tqdm(itertools.combinations('azertyuiopqsdfghjklmwxcvbn123456789',20)): | |
string = ''.join(i) | |
print string | |
mydata=[('domain',string)] | |
mydata=urllib.urlencode(mydata) | |
path='' #the url you want to POST to | |
req=urllib2.Request(path, mydata) | |
req.add_header("Content-type", "application/x-www-form-urlencoded") | |
page = urllib2.urlopen(req).read() | |
print page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment