Skip to content

Latest commit

 

History

History
178 lines (172 loc) · 6.49 KB

WARP.md

File metadata and controls

178 lines (172 loc) · 6.49 KB

Without Telegram Logger
WARP_ID Enter your WARP/WARP+ ID

import urllib.request
import json
import datetime
import random
import string
import time
import os
import sys
os.system("title WARP UNLIMITED ADVANCED")
os.system('cls' if os.name == 'nt' else 'clear')

referrer = input("[#] Enter the WARP+ ID:\n")
def genString(stringLength):
  try:
    letters = string.ascii_letters + string.digits
    return ''.join(random.choice(letters) for i in range(stringLength))
  except Exception as error:
    print(error)
def digitString(stringLength):
  try:
    digit = string.digits
    return ''.join((random.choice(digit) for i in range(stringLength)))
  except Exception as error:
    print(error)
url = f'https://api.cloudflareclient.com/v0a{digitString(3)}/reg'
def run():
  try:
    install_id = genString(22)
    body = {"key": "{}=".format(genString(43)),
        "install_id": install_id,
        "fcm_token": "{}:APA91b{}".format(install_id, genString(134)),
        "referrer": referrer,
        "warp_enabled": False,
        "tos": datetime.datetime.now().isoformat()[:-3] + "+02:00",
        "type": "Android",
        "locale": "es_ES"}
    data = json.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'
          }
    req         = urllib.request.Request(url, data, headers)
    response    = urllib.request.urlopen(req)
    status_code = response.getcode()
    return status_code
  except Exception as error:
    print("")
    print("[×] Error:", error)

g = 0
b = 0
while True:
  os.system('cls' if os.name == 'nt' else 'clear')
  animation = ["[■□□□□□□□□□] 10%","[■■□□□□□□□□] 20%", "[■■■□□□□□□□] 30%", "[■■■■□□□□□□] 40%", "[■■■■■□□□□□] 50%", "[■■■■■■□□□□] 60%", "[■■■■■■■□□□] 70%", "[■■■■■■■■□□] 80%", "[■■■■■■■■■□] 90%", "[■■■■■■■■■■] 100%"] 
  for i in range(len(animation)):
    time.sleep(0.2)
    sys.stdout.write("\r[∆] Progress: " + animation[i % len(animation)])
    sys.stdout.flush()
  result = run()
  if result == 200:
    g += 1
    print(f"\n[•] WARP+ ID: {referrer}")
    print(f"[✓] Added: {g} GB")
    print(f"[#] Total: {g} Good {b} Bad")
    for i in range(20,-1,-1):
      sys.stdout.write(f"\033[1K\r[!] Cooldown: {i} seconds")
      sys.stdout.flush()
      time.sleep(1)
  else:
    b += 1
    print(f"[#] Total: {g} Good {b} Bad")
    for i in range(10,-1,-1):
      sys.stdout.write(f"\033[1K\r[!] Cooldown: {i} seconds")
      sys.stdout.flush()
      time.sleep(1)

With Telegram Logger
WARP_ID Enter your WARP/WARP+ ID.
BOT_API_TOKEN Telegram Bot Token from BotFather.
CHANNEL_ID Channel ID or Group ID like @example or @mychannel to which log needs to be send. Channel or Group should be public.
HIDE_ID To hide WARP_ID in the log message send to Telegram Channel or Group. 0 for No and 1 for Yes.

import urllib.request
import json
import datetime
import random
import string
import time
import os
import sys

# Variables
BOT_API_KEY = input("Enter Bot Token:\n")
CHANNEL_ID = input("Enter Channel ID:\n")
SEND_LOG = "1" # 0 to Disable
HIDE_ID = "0" # 1 to Enable

os.system("title WARP UNLIMITED ADVANCED")
os.system('cls' if os.name == 'nt' else 'clear')

referrer = input("[#] Enter the WARP+ ID:\n")
def genString(stringLength):
try:
  letters = string.ascii_letters + string.digits
  return ''.join(random.choice(letters) for i in range(stringLength))
except Exception as error:
  print(error)
def digitString(stringLength):
try:
  digit = string.digits
  return ''.join((random.choice(digit) for i in range(stringLength)))
except Exception as error:
  print(error)
url = f'https://api.cloudflareclient.com/v0a{digitString(3)}/reg'
def run():
try:
  install_id = genString(22)
  body = {"key": "{}=".format(genString(43)),
      "install_id": install_id,
      "fcm_token": "{}:APA91b{}".format(install_id, genString(134)),
      "referrer": referrer,
      "warp_enabled": False,
      "tos": datetime.datetime.now().isoformat()[:-3] + "+02:00",
      "type": "Android",
      "locale": "es_ES"}
  data = json.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'
        }
  req         = urllib.request.Request(url, data, headers)
  response    = urllib.request.urlopen(req)
  status_code = response.getcode()
  return status_code
except Exception as error:
  print("")
  print("[×] Error:", error)

g = 0
b = 0
while True:
os.system('cls' if os.name == 'nt' else 'clear')
animation = ["[■□□□□□□□□□] 10%","[■■□□□□□□□□] 20%", "[■■■□□□□□□□] 30%", "[■■■■□□□□□□] 40%", "[■■■■■□□□□□] 50%", "[■■■■■■□□□□] 60%", "[■■■■■■■□□□] 70%", "[■■■■■■■■□□] 80%", "[■■■■■■■■■□] 90%", "[■■■■■■■■■■] 100%"] 
for i in range(len(animation)):
  time.sleep(0.2)
  sys.stdout.write("\r[∆] Progress: " + animation[i % len(animation)])
  sys.stdout.flush()
result = run()
if result == 200:
  g += 1
  if SEND_LOG == "1":
    if HIDE_ID == "1":
      urllib.request.urlopen(f"https://api.telegram.org/bot{BOT_API_KEY}/sendMessage?chat_id={CHANNEL_ID}&text=" + "DATA%20RECEIVED:%20" + str(g) + "GB%20FAILED%20ATTEMPT:%20" + str(b))
    else:
      urllib.request.urlopen(f"https://api.telegram.org/bot{BOT_API_KEY}/sendMessage?chat_id={CHANNEL_ID}&text=WARP%20ID:%20{referrer}%20DATA%20RECEIVED:%20" + str(g) + "GB%20FAILED%20ATTEMPT:%20" + str(b))
  print(f"\n[•] WARP+ ID: {referrer}")
  print(f"[✓] Added: {g} GB")
  print(f"[#] Total: {g} Good {b} Bad")
  for i in range(20,-1,-1):
    sys.stdout.write(f"\033[1K\r[!] Cooldown: {i} seconds")
    sys.stdout.flush()
    time.sleep(1)
else:
  b += 1
  print(f"[#] Total: {g} Good {b} Bad")
  for i in range(10,-1,-1):
    sys.stdout.write(f"\033[1K\r[!] Cooldown: {i} seconds")
    sys.stdout.flush()
    time.sleep(1)

Made with 💗 & 🍵 by Dr.Caduceus