Skip to content

ramoslala/cloudflare-warp-wireguard-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Warp WireGuard Client

A tool to generate WireGuard profiles from a new or existing Cloudflare Warp account

Features

  • Fetch configuration data from server
  • Use existing account
  • Create new account
  • Check account type / Warp+ status
  • Create WireGuard profile

Usage

  • poetry install
  • poetry run python wgcf.py

Your new account details will be saved under wgcf-identity.json and your WireGuard profile under wgcf-profile.conf

Existing account

Create a new file wgcf-identity.json with your account details in the following format:

{
    "account_id": "",
    "access_token": "",
    "private_key": ""
}

Extracting from Android [ROOT ONLY]

  • To obtain the account_id and access_token, you can either:
    • Grab the application's private data and read the shared preferences (Titanium Backup)
    • OR
    • Sniff the traffic (requires SSL-pinning bypass)
  • private_key is also stored in the shared preferences. However, it is encrypted with a key stored in the Android keystore system. You can extract this information directly from the app using Frida

Sample scripts can be found in frida-cloudflare.js. Use the magic strings provided in the comments to find the correct symbol names

About

Generate WireGuard profile from Cloudflare Warp account

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.3%
  • JavaScript 14.7%