Advertisement
Xractz

Reset Pass IG

Aug 7th, 2019
2,499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. #Xractz
  2. #IndoSec
  3.  
  4. import json, re
  5. from requests import Session
  6. s = Session()
  7.  
  8. print("RESET PASSWORD IG by Xractz")
  9. id = input("\nEnter your username/email/phone number: ")
  10. url = "https://www.instagram.com/accounts/account_recovery_send_ajax/"
  11.  
  12. g = s.get("https://www.instagram.com/accounts/password/reset/").text
  13. token = re.search(r'csrf_token":"(.*?)"',g).group(1)
  14.  
  15. headers = {
  16.     'x-csrftoken': token
  17. }
  18.  
  19. data = {
  20.     'email_or_username':id
  21.     ,'recaptcha_challenge_field':''
  22. }
  23.  
  24. r = s.post(url, data=data, headers=headers)
  25. a = json.loads(r.text)
  26. print(f"Status  : {a['status']}")
  27. print(f"Message : {a['message']}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement