Last active
February 15, 2020 14:48
-
-
Save ba0f3/3247347ddebb105b0764dd8731ececaa to your computer and use it in GitHub Desktop.
Cloudflare Warp+ 1.1.1.1 data boost script, only curl required
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
command -v curl >/dev/null 2>&1 || { echo >&2 "curl is required"; exit 1; } | |
if [ "$1" == "" ]; then | |
echo "Usage: ${0} <warp+ id>" | |
exit 1 | |
fi | |
RUNNING=true | |
BOOSTED=0 | |
trap stop INT | |
function stop() { | |
RUNNING=false | |
echo "${BOOSTED}GB boosted, bye bye!" | |
} | |
echo "Boosting.. press Ctrl+C to stop" | |
data='{"referrer":"'"${1}"'"}' | |
while $RUNNING;do | |
if ! curl 'https://api.cloudflareclient.com/v0a778/reg' --data "$data" > /dev/null 2>&1; then | |
BOOSTED=$((BOOSTED+1)) | |
fi | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment