Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. https://get-bug-cloudflare.lvddong.repl.run/
  2.  
  3.  
  4. https://repl.it/
  5.  
  6. 6c6b3fc2-263b-4946-8b3a-c157aa09936e
  7.  
  8.  
  9. import requests
  10. import json
  11. import datetime
  12. import random
  13. import string
  14.  
  15. referrer = input("Nhập ID của bạn: ")
  16. timesToLoop = input("Nhập số GB muốn tăng: ")
  17. retryTimes = 5
  18.  
  19.  
  20. def genString(stringLength):
  21. letters = string.ascii_letters + string.digits
  22. return ''.join(random.choice(letters) for i in range(stringLength))
  23.  
  24.  
  25. url = 'https://api.cloudflareclient.com/v0a745/reg'
  26.  
  27.  
  28. def run():
  29. install_id = genString(11)
  30. body = {"key": "{}=".format(genString(42)),
  31. "install_id": install_id,
  32. "fcm_token": "{}:APA91b{}".format(install_id, genString(134)),
  33. "referrer": referrer,
  34. "warp_enabled": False,
  35. "tos": datetime.datetime.now().isoformat()[:-3] + "+07:00",
  36. "type": "Android",
  37. "locale": "zh-CN"}
  38.  
  39. bodyString = json.dumps(body)
  40.  
  41. headers = {'Content-Type': 'application/json; charset=UTF-8',
  42. 'Host': 'api.cloudflareclient.com',
  43. 'Connection': 'Keep-Alive',
  44. 'Accept-Encoding': 'gzip',
  45. 'User-Agent': 'okhttp/3.12.1'
  46. }
  47.  
  48. r = requests.post(url, data=bodyString, headers=headers)
  49. return r
  50.  
  51.  
  52. for i in range(int(timesToLoop)):
  53. result = run()
  54. if result.status_code == 200:
  55. print(i + 1, "OK")
  56. else:
  57. print(i + 1, "Error")
  58. for r in range(retryTimes):
  59. retry = run()
  60. if retry.status_code == 200:
  61. print(i + 1, "Retry #" + str(r + 1), "OK")
  62. break
  63. else:
  64. print(i + 1, "Retry #" + str(r + 1), "Error")
  65. if r == retryTimes - 1:
  66. exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement