π» A professional cybersecurity tool that makes your real IP vanish and reappear with a new anonymous identity using the Tor network - completely FREE!
β¨ Real Anonymous IP Changing:
- π 100% Free - No VPN subscriptions or paid services required
- π Tor Network - Uses the Tor anonymity network for real IP changes
- π» Automatic IP Rotation - Changes your public IP address every specified interval
- π‘οΈ Anonymous Browsing - Routes all traffic through Tor network
- β‘ Easy Setup - Tor installed and configured automatically
- π§ Zero Cost - Completely free alternative to paid VPN services
- π― Demo Mode - Available for testing and presentations
# π Real IP changing with Tor network (main feature)
ip-phantom --interval 10
# π Check your current IP address
ip-phantom --check-ip
# π― Demo mode (for testing/presentations)
ip-phantom --demo --interval 3Example Real Output:
π» Starting IP Phantom with Tor (changing IP every 10s)
π Using Tor network for anonymous IP changing
Press Ctrl+C to stop
π Initial IP: 14.194.135.206
π Changing IP address...
β Tor started successfully
π» IP changed via Tor: 14.194.135.206 β 185.220.101.32
β
Identity change #1 complete
β³ Waiting 10 seconds...
- π Real IP Changing - Actually changes your public IP address using Tor network
- π 100% Free - No VPN subscriptions or paid services required
- π‘οΈ Anonymous Browsing - Routes all traffic through Tor for complete anonymity
- β‘ Automatic Setup - Tor installed and configured automatically
- π» Circuit Renewal - Forces new Tor circuits for fresh IP addresses
- π Real-time Verification - Confirms successful IP changes immediately
- β±οΈ Customizable Intervals - Set IP changing frequency (1-86400 seconds)
- π§ Cross-Platform - Works on macOS, Linux, and Windows
- π Security Logging - Detailed logs for security auditing
- β‘ Professional UI - Clean terminal output with visual indicators
- π Security Focused - Built with cybersecurity best practices
- π― Demo Mode - Available for testing and presentations
- β‘ Graceful Shutdown - Responsive Ctrl+C handling
- Penetration Testing: Evade IP-based detection during authorized security assessments
- Security Research: Analyze geo-restricted content and regional security policies
- Privacy Protection: Protect personal identity during security research
- Load Testing: Test applications with traffic from different geographical locations
- Threat Hunting: Investigate threats while maintaining operational security
- Cybersecurity Training: Learn network security and anonymity techniques
- Academic Research: Study network behavior and security mechanisms
- Security Awareness: Demonstrate IP tracking and geolocation concepts
- Tool Demonstrations: Perfect demo mode for showcasing capabilities
- Python 3.6+ π
- Tor (automatically installed)
- curl (for IP checking)
git clone https://github.com/yourusername/ip-phantom.git
cd ip-phantom
chmod +x install.sh
./install.shThis will:
- Install Tor automatically if not present
- Set up global
ip-phantomcommand - Configure all necessary permissions
# Clone the repository
git clone https://github.com/yourusername/ip-phantom.git
cd ip-phantom
# Install Tor (macOS)
brew install tor
# Install Tor (Ubuntu/Debian)
sudo apt update && sudo apt install tor
# Install Tor (CentOS/RHEL)
sudo yum install tor
# Make scripts executable
chmod +x ip-phantom ip_phantom.py
# Test the installation
./ip-phantom --check-ip# Quick start - change IP every 10 seconds
ip-phantom --interval 10
# Check what your current IP is
ip-phantom --check-ip
# Test with demo mode (no actual IP changes)
ip-phantom --demo --interval 5
# Run with detailed output
ip-phantom --interval 15 --verbose
# Show all available options
ip-phantom --help- Install: Run
./install.shonce for global access - Test: Use
ip-phantom --demo --check-ipto verify - Real Use: Run
ip-phantom --interval 10for actual IP rotation - Stop: Press
Ctrl+Cto gracefully shutdown
# Start IP changing every 10 seconds
ip-phantom --interval 10
# Start with verbose logging
ip-phantom --interval 15 --verbose
# Check current IP address
ip-phantom --check-ip
# View all options
ip-phantom --help# Using Python directly
python3 ip_phantom.py --interval 10
python3 ip_phantom.py --check-ip
python3 ip_phantom.py --verbose --interval 5For presentations and testing without real IP changes:
ip-phantom --demo --interval 3Example Demo Output:
π Starting IP Phantom Demo (changing IP every 3s)
π Connected to United States (New York) server
π Current IP: 185.220.101.32
π Changing IP address...
β Connected to Germany (Frankfurt) server
π» IP changed: 185.220.101.32 β 146.70.173.85
β
Identity change #1 complete
β³ Waiting 3 seconds...
π Changing IP address...
β Connected to United Kingdom (London) server
π» IP changed: 146.70.173.85 β 51.89.153.122
β
Identity change #2 complete
π Shutting down gracefully...
β
IP Phantom stopped safely.
- OS: Linux, macOS, or Windows with WSL
- Python: 3.6 or higher
- Network: Internet connection for Tor network (real mode only)
- Memory: 512MB RAM minimum
- Storage: 100MB free space
- Privileges: Standard user privileges (no sudo required for demo mode)
For Real Mode (Tor):
python3- Core runtime (3.6+)tor- Tor network client (auto-installed if missing)curl- HTTP requests for IP checking- Internet connection for Tor network access
For Demo Mode:
python3- Core runtime (3.6+)curl- HTTP requests for IP checking (simulation)
| Option | Short | Description | Example |
|---|---|---|---|
--interval N |
-i N |
IP change interval in seconds (1-86400) | --interval 10 |
--config FILE |
-c FILE |
Custom configuration file path | --config my_config.json |
--verbose |
-v |
Enable detailed logging output | --verbose |
--check-ip |
Check current IP address and exit | --check-ip |
|
--demo |
Demo mode with simulated IP changes | --demo |
|
--help |
-h |
Show comprehensive help message | --help |
- No credential storage: No personal information stored locally
- Minimal privileges: Standard user privileges, no sudo required for core functionality
- Encrypted connections: All traffic routed through Tor's encrypted network
- DNS leak protection: Automatic DNS routing through Tor network
- Clean disconnect: Graceful Tor circuit cleanup on exit
- Safe shutdown: Professional error handling with responsive Ctrl+C
- Real-time IP verification: Confirms successful IP changes via Tor with visual indicators
- Comprehensive logs: Detailed logging to
ip_phantom.logwith clean console output - Error tracking: Failed Tor circuit attempts and recovery actions
- Circuit audit: Tor circuit creation/renewal events
- Professional output: Clean, emoji-enhanced status messages with country detection
- No data retention: No personal information stored locally
- Secure file permissions: Configuration files secured with 600 permissions
- Memory safety: Credentials cleared from memory after use
- Demo mode safety: Test functionality without exposing real IP addresses
- Automatic Tor Daemon: Starts and manages Tor process automatically
- Circuit Renewal: Forces new Tor circuits to change IP addresses
- SOCKS Proxy: Routes traffic through Tor's SOCKS5 proxy (127.0.0.1:9050)
- Control Port: Uses Tor's control interface (9051) for circuit management
- IP Verification: Confirms IP changes via Tor-routed HTTP requests
| Feature | Demo Mode | Real Mode (Tor) |
|---|---|---|
| IP Changes | Simulated | Actually changes your public IP |
| Network Traffic | No routing changes | All traffic through Tor |
| Dependencies | Python + curl only | Python + Tor + curl |
| Speed | Instant simulation | ~3-5 seconds per change |
| Use Case | Presentations, testing | Real anonymity and privacy |
The tool automatically creates and manages Tor configuration. For advanced users:
- Edit Tor config:
torrcfile in project directory - Edit IP Phantom config:
config.json - Custom intervals: Use
--intervaloption
config.json (IP Phantom Configuration):
{
"vpn_configs": [],
"proxy_configs": [
{
"name": "tor-proxy",
"type": "socks5",
"host": "127.0.0.1",
"port": 9050,
"enabled": true
}
],
"phantom_method": "tor",
"check_ip_url": "https://httpbin.org/ip"
}torrc (Tor Network Configuration):
# SOCKS proxy on port 9050
SocksPort 9050
# Control port for circuit management (IP rotation)
ControlPort 9051
# Allow connections from localhost only
SocksBindAddress 127.0.0.1
# Enable control port authentication
CookieAuthentication 1
CookieAuthFile /tmp/tor-control-cookie
# Circuit settings for better IP rotation
NewCircuitPeriod 60
MaxCircuitDirtiness 300
# Directory for Tor data
DataDirectory /tmp/tor-data
This tool is provided for educational and authorized security testing purposes only. Users must ensure compliance with all applicable laws and regulations.
β ALLOWED:
- Authorized penetration testing with written permission
- Personal privacy protection on your own systems
- Academic research and cybersecurity education
- Security testing of systems you own or have explicit permission to test
- Bug bounty programs where IP changing is permitted
- Demonstrations and training in controlled environments
β PROHIBITED:
- Unauthorized access to systems or networks
- Circumventing geographic restrictions for illegal purposes
- Any activity that violates terms of service or laws
- Malicious hacking or cyberattacks
- Copyright infringement or piracy
- Fraud, identity theft, or other criminal activities
./install.shWhat it does:
- β Creates global symbolic links
- β Sets proper permissions
- β Verifies installation
- β Shows usage examples
- β Works from any directory
# π Global (recommended)
ip-phantom --demo --interval 5 # Works anywhere!
# π Local (still supported)
./ip-phantom --demo --interval 5 # Works in project directory# Test basic functionality without dependencies
ip-phantom --demo --check-ip
# or
./ip-phantom --demo --check-ip
# Test IP changing with verbose output
ip-phantom --demo --verbose --interval 5# Fix script permissions
chmod +x ip-phantom ip_phantom.py
# Verify Python access
python3 --version# Test in demo mode (no dependencies needed)
python3 ip_phantom.py --demo --check-ip
# Test Python script directly
python3 ip_phantom.py --check-ip --verboseWe welcome contributions from the cybersecurity community!
- Follow Python PEP 8 style guidelines
- Add tests for new functionality
- Update documentation for changes
- Ensure security best practices
- Test on multiple platforms
- Test both real Tor mode and demo mode
This project is licensed under the MIT License - see the LICENSE file for details.
- The Tor Project for creating the anonymous network that powers IP Phantom
- Tor developers and volunteers who maintain the global Tor network infrastructure
- Security researchers who inspired this project and promote digital privacy
- Open-source cybersecurity community for advancing privacy tools and techniques
- Anonymous exit node operators who provide the infrastructure for true anonymity