Skip to content

Instantly share code, notes, and snippets.

@icecoldfire
Created May 21, 2016 19:20
Show Gist options
  • Save icecoldfire/6702bc6e99ef6c8cf1c1cd5ec66951a8 to your computer and use it in GitHub Desktop.
Save icecoldfire/6702bc6e99ef6c8cf1c1cd5ec66951a8 to your computer and use it in GitHub Desktop.
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