Skip to content

Instantly share code, notes, and snippets.

@ba0f3
Last active February 15, 2020 14:48
Show Gist options
  • Save ba0f3/3247347ddebb105b0764dd8731ececaa to your computer and use it in GitHub Desktop.
Save ba0f3/3247347ddebb105b0764dd8731ececaa to your computer and use it in GitHub Desktop.
Cloudflare Warp+ 1.1.1.1 data boost script, only curl required
#!/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