Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
/ warp-cloner Public archive

Simple Python script that can clone Warp Plus (1.1.1.1) keys and generate 12PB (or 24PB) keys.

License

Notifications You must be signed in to change notification settings

totoroterror/warp-cloner

Repository files navigation

Warp Cloner

Warp Cloner is discontinued due to latest announce of Cloudflare - see here. Thanks to all of you to supporting this project.

warp-cloner

Simple Python script that can clone Warp Plus keys.

With this script you will be able to clone many 12-24 PB keys.

Installation

  1. Clone this repository
  2. Install Python 3.11 or higher
  3. Install dependencies using pip install -r requirements.txt
  4. Copy .env.example to .env and fill variables (see next section)
  5. Launch script using python -u src/main.py
  6. Wait for results in console.

Configuration

  • BASE_KEYS (optional) - keys to clone divided as array in JSON format (ex: ["key1", "key2"]), if none then default keys will be used (script may not work with default keys)
  • THREADS_COUNT (default: 1) - amount of threads.
  • DEVICE_MODELS (optional) - custom device model names divided as array in JSON format (ex: ["Android", "Secret Device"])
  • SAVE_WIREGUARD_VARIABLES (default: false) - should script get variables that are required to generate WireGuard config (peer ips, private / public key, endpoint)?
  • PROXY_FILE (optional) - path to proxy file, if none then script will be launched in proxyless mode.
  • DELAY (default: 25) - seconds to sleep after key clone
  • OUTPUT_FILE (default: output.txt) - file to append generated keys
  • OUTPUT_FORMAT (default: {key} | {referral_count}) - output format (if SAVE_WIREGUARD_VARIABLES is set to true, additinal variables is available: {private_key}, {peer_endpoint}, {peer_public_key}, {interface_addresses}, {reserved})
  • WEBHOOK_KEYS_URL (optional) - http endpoint that will accept post request with key data
  • RETRY_COUNT (default: 3) - how much times application will retry generation with same key

Notes

Proxy format

Proxy format for PROXY_FILE is protocol://user:pass@ip:port, example: socks5://example.org:1892 / http://totoro:warp@example.org, one proxy per line.

Getting your own 12-24 PB keys to fill BASE_KEYS

You can get your own key to start with using @warpplus's bot (limited to 1 key per 24 hours) or find some keys on forums.

Properly closing application

To avoid getting error "Too many connected devices" in future, you should properly exit from the application by pressing control + c and wait for application to close (it will take ~30 seconds).

Proxy selection

You can use almost any proxy (ipv4 / ipv6) as far as they don't block Warp API endpoint. I suggest you to use ipv6 proxy because they are way cheaper, but keep in mind, that your network should support ipv6 in most cases to do this.

Contributing

I will support this project as far as I can, but issues and pull requests are always welcome!

License

This project licensed under MIT License.

Support me

You can support my further developments or support this project by buying me a coffee using link below or by starring this repo ♥

Buy Me A Coffee