Advertisement
Br1in

Untitled

Feb 18th, 2021
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. import requests
  2. print("""
  3. ████████╗██╗██╗ ██╗████████╗ ██████╗ ██╗ ██╗
  4. ╚══██╔══╝██║██║ ██╔╝╚══██╔══╝██╔═══██╗██║ ██╔╝
  5. ██║ ██║█████╔╝ ██║ ██║ ██║█████╔╝
  6. ██║ ██║██╔═██╗ ██║ ██║ ██║██╔═██╗
  7. ██║ ██║██║ ██╗ ██║ ╚██████╔╝██║ ██╗
  8. ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
  9. By @71oc
  10. """)
  11. sessionid = str(input("[+] Enter Sessionid : "))
  12. target = str(input("[+] Enter Target : "))
  13. url = 'https://api16-normal-c-alisg.tiktokv.com/passport/login_name/update/?residence=SA&device_id=6870709334024848901&os_version=13.6.1&app_id=1233&iid=6924902298624624385&app_name=musical_ly'
  14.  
  15. head1 = {
  16. 'Host': 'api16-normal-c-alisg.tiktokv.com',
  17. 'Connection': 'close',
  18. 'Content-Length': '25',
  19. 'Cookie': f'sessionid={sessionid}',
  20. "x-tt-passport-csrf-token": f"{sessionid}",
  21. 'x-Tt-Token': '2c593820065f9a47b9bf51281eda9604-1.0.0-1.0.0',
  22. 'Content-Type': 'application/x-www-form-urlencoded',
  23. 'sdk-version': '2',
  24. 'passport-sdk-version': '5.12.1'
  25. }
  26.  
  27. data = {
  28. 'login_name': f' '
  29. }
  30. req = requests.post(url, data=data, headers=head1).text
  31. if '"description":"You are visiting our service too frequently."' in req:
  32. input(f'[SB] Sessionid Blocked ..')
  33. exit(0)
  34.  
  35. elif '"description":"The conversation has expired, please log in again"' in req:
  36. print('[SE] Sessionid Error ..')
  37.  
  38.  
  39. elif '"message":"error"' in req:
  40. print("[SW] Sssionid Work ..")
  41. req = 0
  42. def edit():
  43. data = {
  44. 'login_name': f'{target}'
  45. }
  46. while True:
  47. req = requests.post(url, data=data, headers=head1).text
  48. if '"message":"success"' in req:
  49. print(f"[SW] Swapped @{target}")
  50. break
  51. exit(0)
  52. elif '"description":"You are visiting our service too frequently."' in req:
  53. print('[AB] Account Blocked Try Vpn ..')
  54. elif '"description":"The conversation has expired, please log in again"' in req:
  55. print('[SB] Sessionid Blocked ..')
  56. elif '"description":"login name can only be updated once within one month."' in req:
  57. print('[AB] Account Blocked ..')
  58. else:
  59. req += 1
  60. print(f'Request > {req}')
  61. edit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement