Code Monkey home page Code Monkey logo

warplus's Introduction

WARPlus

WARPlus helps you to get free quota on CloudFlare's WARP+.

This project is based on ALIILAPRO/warp-plus-cloudflare's concepts. WARPlus differs by being a CLI application and supports a lot of extra features.

Please do not abuse this script and use CloudFlare's services fairly. Don't let this become a tragedy of the commons and ruin it for everyone. This script is for educational purposes only.

screenshot

Quick Start

The tutorial below uses binary names for Linux systems. On Windows, pip3 may be pip, and python3 may be python by default.

You'll first need to install some dependencies.

pip3 install -U -r requirements.txt

The most basic way to use this application is shown below. DEVICE_ID here should be replaced with your WARP application's device ID (e.g., 9a4190b3-ab1c-465c-aa03-189aa5141ec1). This ID can be found in Menu > Advanced > Diagnostics > Client Configuration > ID on mobile phones. If you're using wgcf, it will be in the wgcf-account.toml file.

This command will run WARPlus with one thread using your own IP. It will send a request every 15 seconds to avoid being rate-limited by CloudFlare.

python3 warplus.py -w DEVICE_ID

If you'd like to do it faster, you can try multi-threading + proxies. WARPlus can retrieve a list of proxies automatically from ProxyScrape, just like ALIILAPRO/warp-plus-cloudflare's GUI version.

The example below will launch 100 threads, use proxies, have a sending-interval of 1 second, automatically delete unusable proxies from the proxy list, and wait for the server to respond for a maximum of 10 seconds. Threads without jobs to do will exit automatically.

python3 warplus.py -w DEVICE_ID -t 100 -p -i 1 -a -o 10

If you'd like to run this as a daemon, I'd recommend you to not use -a.

python3 warplus.py -w DEVICE_ID -t 500 -p -i 1 -o 10

You can also set a limit on the maximum number of times the script will send successful requests. For example, if you want to get about 10 gigabytes of quota, you can set -l/--limit to 10. Be aware that if you have too many threads, the limit might get exceeded.

Full Usages

usage: warplus [-h] -w WARPID [-t THREADS] [-i INTERVAL] [-l LIMIT] [-o TIMEOUT] [-p] [-a] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -w WARPID, --warpid WARPID
                        WARP device ID (default: None)
  -t THREADS, --threads THREADS
                        number of threads to use (default: 1)
  -i INTERVAL, --interval INTERVAL
                        time interval between sending two requests in one thread (default: 15)
  -l LIMIT, --limit LIMIT
                        set the maximum number of successful requests the script will send (default: None)
  -o TIMEOUT, --timeout TIMEOUT
                        server connection timeout (default: 8)
  -p, --proxies         use proxies (default: False)
  -a, --autoremove      automatically remove unusable proxies (default: False)
  -v, --version         print WARPlus's version and exit (default: False)

warplus's People

Contributors

k4yt3x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

warplus's Issues

Help with threading

thread keep randomly exiting whether i set it on 200 or 500, sometime it keeps randomly exiting, sometime it can go indefinitely, is there any way to make changes to the script so it can go indefinitely?

It seems like all the requests done are getting 403

I looked into it since I was curious to fix it. It seems like the issue might be coming from the Requests library since it seems to work with urllib.request, however, urllib.request doesn't support proxies therefore you cant use multiple threads. Any idea if there is a fix for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.