Skip to content

Instantly share code, notes, and snippets.

@dictcp
Last active April 1, 2020 15:14
Show Gist options
  • Save dictcp/f0dfcc34d8a04f9f3b4bbeadab8a122c to your computer and use it in GitHub Desktop.
Save dictcp/f0dfcc34d8a04f9f3b4bbeadab8a122c to your computer and use it in GitHub Desktop.
generate cloudflare wrap+ profile
#!/bin/bash
echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list
apt update && apt -y install wireguard-tools
export PATH="/usr/local/bin:$PATH"
/usr/local/bin/pip install poetry
git clone https://github.com/ViRb3/cloudflare-warp-wireguard-client
cd cloudflare-warp-wireguard-client/
sed -i 's/input("Do you agree? (y\/N): ").lower()/"y"/g' wgcf.py
poetry install
poetry run python wgcf.py
cat wgcf-profile.conf
echo
@dictcp
Copy link
Author

dictcp commented Apr 1, 2020

docker run -it python:3.8-buster bash -c "$(curl https://gist.githubusercontent.com/dictcp/f0dfcc34d8a04f9f3b4bbeadab8a122c/raw/0d1279a4f954ef1b14bdd57b7ac589005b2c1745/gen-profile.sh)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment