Skip to main content

Advanced zero-config dual-layer network anonymization wrapper (WARP + Tor) with Global VPN and Anti-Detect Engine.

Project description

CasperAC Logo

CasperAC

Advanced Dual-Layer Network Anonymization CLI

Build Status PyPI Version Python Versions License: MIT


CasperAC is an advanced, automated network anonymization CLI tool designed to wrap any terminal command (like curl, nmap, or wget) in a highly secure Dual-Layer (WARP + Tor) tunnel. It features a true Zero-Config Auto-Deploy engine that installs and configures its own VPN and proxy infrastructure automatically.

🌟 The Dual-Layer Privacy Architecture

CasperAC employs a state-of-the-art dual-layer network stack to ensure maximum privacy and prevent Deep Packet Inspection (DPI):

  1. Layer 1: Cloudflare WARP (WireGuard VPN)
    • All your system traffic is encrypted and sent to Cloudflare's edge network.
    • Why? Your local Internet Service Provider (ISP) or network administrator cannot see that you are using Tor. They only see a standard Cloudflare connection.
  2. Layer 2: The Onion Router (Tor)
    • Inside the WARP tunnel, CasperAC routes your specific terminal command through the Tor network.
    • Why? The Tor Entry Node sees Cloudflare's IP instead of your real IP. Finally, the target server sees a random Tor Exit Node IP.

Result: Your ISP doesn't know you use Tor, the Tor network doesn't know your real IP, and the target server doesn't know who you are.

📊 Network Data Flow (Dual-Layer Architecture)

sequenceDiagram
    autonumber
    
    actor User as Your Machine
    participant ISP as Your Local ISP
    participant WARP as Cloudflare Edge (Layer 1)
    participant TorEntry as Tor Entry Node
    participant TorMiddle as Tor Middle Relay
    participant TorExit as Tor Exit Node
    participant Target as Target Server (e.g. github.com)

    User->>ISP: Encrypted WireGuard Packet (Dest: Cloudflare)
    note left of ISP: Your ISP only sees a secure<br/>connection to Cloudflare.
    
    ISP->>WARP: Forwards data to Cloudflare Edge
    note over WARP,TorEntry: WARP (Layer 1) hides your<br/>Real IP from the Tor Network.
    
    WARP->>TorEntry: Enters Tor Network (Source IP: Cloudflare)
    note right of TorEntry: Tor Entry Node thinks the traffic<br/>is originating from Cloudflare.
    
    TorEntry->>TorMiddle: 3-Layer Encrypted (Onion) Data
    TorMiddle->>TorExit: Hops within the Tor Network
    
    note over TorExit,Target: Tor (Layer 2) hides your identity<br/>from the Target Server.
    TorExit->>Target: Connects to Target (Source IP: Tor Exit Node)
    
    note right of Target: The target server only sees the<br/>random Tor Exit Node IP.
    
    Target-->>TorExit: Returns Response
    TorExit-->>TorMiddle: 
    TorMiddle-->>TorEntry: 
    TorEntry-->>WARP: 
    WARP-->>ISP: 
    ISP-->>User: Terminal Output (cURL/Wget) Success

🔍 Why is this better than just using Tor?

  1. Blind ISP (Layer 1): If you only use Tor, your Internet Service Provider (ISP) knows you are connecting to the Tor network. With CasperAC, your ISP only sees standard, encrypted Cloudflare WARP traffic.
  2. Blind Tor Entry Node (Layer 2): In a normal Tor setup, the first node (Entry Node) knows your real home IP address. With CasperAC, the Tor network thinks you are connecting from a Cloudflare data center. Your real IP never touches the Tor network.
  3. Blind Target Server: The destination server only sees a random Tor Exit Node IP and a spoofed User-Agent (thanks to the Anti-Detect Engine), keeping you completely anonymous.

✨ Features

  • 🚀 Zero-Config Auto-Deploy: If Tor or Cloudflare WARP are not installed, CasperAC automatically downloads, installs, and configures them for you via system package managers (Homebrew/APT).
  • 🛡️ Dual-Layer Security: Combines Cloudflare WARP with Tor for ISP-blind, exit-node-anonymized traffic.
  • 🌍 Global VPN Mode: Instantly route your entire operating system (all browsers and apps) through the Tor network with a single command (casperac global-on).
  • 🕵️‍♂️ Anti-Detect Engine: Intelligently evades bot-protection (like Cloudflare) by dynamically injecting realistic browser fingerprints (User-Agents, sec-ch-ua, Accept-Language) into terminal commands.
  • 🔄 Dynamic IP Rotation: Effortlessly renew your Tor circuit with a single command to get a fresh IP address.
  • 💻 Environment Management: Easily export or unset proxy environment variables for your current active shell session.

🚀 Usage

1. Status Check & Auto-Deploy

Check your network status. If Tor or WARP is missing, CasperAC will auto-deploy them.

casperac status

2. Command Proxying (Smart Wrapper)

Wrap any terminal command to automatically route it through Tor, with dynamic browser fingerprint injection.

casperac run -- curl ifconfig.me

Spoof Mobile Identity

casperac run --mobile -- curl ifconfig.me

3. Global VPN Mode (System-wide Tor)

Route your entire operating system (Safari, Chrome, Spotify, OS updates) through the Tor network. (Currently supported on macOS and Linux GNOME desktops).

casperac global-on

To disable and restore normal internet:

casperac global-off

4. Circuit Renewal

casperac renew

🚀 Installation

Prerequisites

  • Python 3.8+
  • Tor daemon installed and running locally on port 9050. Control port on 9051.
  • Cloudflare WARP CLI (optional, but recommended for the dual-layer approach).

Setup via PyPI (Recommended)

pip install casperac

Setup from Source

git clone https://github.com/cagritas/casperac.git
cd casperac
pip install -e .

💻 Usage

# Check the status of your proxies
casperac status

# Run a specific command through the proxy chain
casperac run -- curl -I https://api.github.com/user

# Renew your Tor exit node
casperac renew

# Source proxy variables into your active shell session
eval $(casperac env-on)

# Revert proxy variables
eval $(casperac env-off)

🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to check issues page. You can also take a look at the contributing guide.

📝 License

Copyright © 2024. This project is MIT licensed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

casperac-0.3.4.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

casperac-0.3.4-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file casperac-0.3.4.tar.gz.

File metadata

  • Download URL: casperac-0.3.4.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for casperac-0.3.4.tar.gz
Algorithm Hash digest
SHA256 694bf474b76bb93d2a22547847e4248218afe8b7b239dec76723ba1fce0c14d6
MD5 eb1c85f19e3191cb5294233290a0826f
BLAKE2b-256 7ab2029d73fcfd5ae1705e987c6fee31a7519c4f68eee3c925054518a795e4db

See more details on using hashes here.

Provenance

The following attestation bundles were made for casperac-0.3.4.tar.gz:

Publisher: ci.yml on cagritas/casperac

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file casperac-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: casperac-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for casperac-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 759cff7f1445c0ab3361e82adce9fd9713d276bd1c1df0f1181325ab65e7e961
MD5 837111e1e87f62ea5747a5676193801c
BLAKE2b-256 8e9d58423fe7a91d9f0666ae0d7dc0481227a800b1eefbbf252f5b01590df955

See more details on using hashes here.

Provenance

The following attestation bundles were made for casperac-0.3.4-py3-none-any.whl:

Publisher: ci.yml on cagritas/casperac

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page