Kernel: Python 3
Enter WARP CLIENT ID:
In [ ]:
#@markdown <br><center><img src='https://1.1.1.1/media/warp-desktop.png' height="200" alt="Wrap+"/></center> #@markdown <center><h3><b><i>WARP (1.1.1.1)</i></b></h3></center><br> !pip install httpx from datetime import datetime from json import dumps from random import choice, randint from string import ascii_letters, digits from time import sleep import httpx WARP_CLIENT_ID = "" #@param {type:"string"} # Defaults SUCCESS_COUNT, FAIL_COUNT = 0, 0 def genString(stringLength): try: letters = ascii_letters + digits return ''.join(choice(letters) for _ in range(stringLength)) except Exception as error_code: print(error_code) def digitString(stringLength): try: digit = digits return ''.join(choice(digit) for _ in range(stringLength)) except Exception as error_code: print(error_code) url = f"https://api.cloudflareclient.com/v0a{digitString(3)}/reg" while True: try: install_id = genString(22) body = { "key": f"{genString(43)}=", "install_id": install_id, "fcm_token": f"{install_id}:APA91b{genString(134)}", "referrer": WARP_CLIENT_ID, "warp_enabled": False, "tos": f"{datetime.now().isoformat()[:-3]}+02:00", "type": "Android", "locale": "es_ES" } data = dumps(body).encode("utf8") headers = { "Content-Type": "application/json; charset=UTF-8", "Host": "api.cloudflareclient.com", "Connection": "Keep-Alive", "Accept-Encoding": "gzip", "User-Agent": "okhttp/3.12.1" } response = httpx.post(url, data=data, headers=headers).status_code except Exception as error_code: print(error_code) if response == 200: SUCCESS_COUNT += 1 print(f"PASSED: +1GB (total: {SUCCESS_COUNT}GB, failed: {FAIL_COUNT})") else: print(f"FAILED: {response}") FAIL_COUNT += 1 # Cooldown cooldown_time = randint(30,50) print(f"Sleep: {cooldown_time} seconds.") sleep(cooldown_time)