Advertisement
thefinn93

Untitled

Oct 10th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import requests     # get this from python-requests.org
  3. import random
  4. import urllib
  5.  
  6. def passwd():
  7.     a = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  8.     b = ""
  9.     c = 0
  10.     d = random.randint(1,20)
  11.     while c < d:
  12.         b = b + a[random.randint(0,len(a)-1)]
  13.         c = c + 1
  14.     return b
  15.    
  16. print "User\t\tpassword"
  17. print "============================"
  18. while True:
  19.     user = passwd()
  20.     password = passwd()
  21.     print user + "\t" + password
  22.     requests.post("http://tviwtter.com/app/login.php",urllib.urlencode({"email":user,"password":password}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement