Guest User

Untitled

a guest
Nov 15th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3.  
  4. """check-captcha.py: Example script to solve ingame captcha manually"""
  5.  
  6. from pgoapi import PGoApi
  7. from pgoapi.utilities import f2i
  8. from pgoapi import utilities as util
  9. from pgoapi.exceptions import AuthException
  10. import pprint
  11. from pprint import pprint
  12. import time
  13.  
  14. def check_captcha(username, password, auth):
  15. #print('Accepting Terms of Service for {}'.format(username))
  16. api = PGoApi()
  17. api.set_position(51.5030922, 7.466812, 0.0)#change these so you don't trigger that you teleported
  18. api.login(auth, username, password)
  19. time.sleep(2)
  20.  
  21. response_dict = api.check_challenge()
  22. pprint(response_dict)
  23.  
  24. if(len(response_dict['responses']['CHECK_CHALLENGE']['challenge_url']) > 1):
  25. token = raw_input("What did you get back from the str var?")
  26. token = token.strip()
  27.  
  28. r2 = api.verify_challenge(token=token)
  29. pprint(r2)
  30. else:
  31. print("Account is ok")
  32.  
  33. check_captcha('NAME', 'PASSWORD', 'ptc')
Add Comment
Please, Sign In to add comment