Automatically change your MAC address and route all traffic through Tor
Simple, lightweight, no Docker required. Built specifically for Kali Linux and Debian-based systems.
# Clone the repo
git clone https://github.com/yourusername/TorProxy.git
cd TorProxy
# Install everything (replace eth0 with your interface)
sudo chmod +x INSTALL.sh
sudo ./INSTALL.sh eth0
# Done! Now use it:
./run.sh curl https://check.torproject.org/api/ip- 🎭 MAC Address Randomization - Cryptographically secure using
/dev/urandom - 🌐 Tor Network Routing - All traffic anonymized through Tor
- 🔒 DNS Privacy - DNS queries routed through Tor (no leaks)
- ⚡ Native Performance - No Docker overhead
- 🛠️ Easy to Use - Simple wrapper script for any command
- Kali Linux (or any Debian-based distro)
- Root/sudo access
- Network interface to modify
./run.sh curl https://httpbin.org/ip
./run.sh wget https://example.com
./run.sh firefox
./run.sh nmap -sT target.comLD_PRELOAD=./torproxy/torproxy.so curl https://httpbin.org/ip# Using curl
curl --socks5 127.0.0.1:9050 https://httpbin.org/ip
# Using proxychains
proxychains4 firefox# Check if using Tor
curl --socks5 127.0.0.1:9050 https://check.torproject.org/api/ip
# Should return: "IsTor": true- SOCKS proxy: 127.0.0.1:9050
- DNS resolver: 127.0.0.1:9053
- Client-only mode (no relay)
- Optimized for privacy
# Start Tor
sudo systemctl start tor
# Stop Tor
sudo systemctl stop tor
# Check status
sudo systemctl status tor
# View logs
sudo journalctl -u tor -f
# Change MAC again
sudo ./macChanger/macChange eth0
# Get new Tor circuit
sudo systemctl restart tor# Check if Tor is running
nc -z 127.0.0.1 9050
# Check logs
sudo journalctl -u tor -n 50
# Restart Tor
sudo systemctl restart tor# Check interface name
ip link show
# Try manually
sudo ip link set eth0 down
sudo ./macChanger/macChange eth0
sudo ip link set eth0 up- ✅ MAC address randomized with cryptographic randomness
- ✅ All TCP connections routed through Tor
- ✅ DNS queries go through Tor (prevents DNS leaks)
⚠️ Some apps may bypass LD_PRELOAD (use proxychains for those)⚠️ UDP traffic is NOT routed through Tor⚠️ Requires root for MAC changing
TorProxy/
├── macChanger/ # MAC address randomizer
│ ├── macChange.c # C source
│ └── Makefile
├── torproxy/ # Tor proxy library
│ ├── torproxylib.c # SOCKS4 implementation
│ ├── torproxy.h # Header
│ └── Makefile
├── INSTALL.sh # One-command installer
├── run.sh # Wrapper script
├── torrc # Tor configuration
└── README.md # This file
Pull requests welcome! Please test on Kali Linux before submitting.
If this helped you, give it a star! ⭐
Educational and research purposes only. Use responsibly and in accordance with local laws.
Made with ❤️ for privacy enthusiasts