This script changes IP address through TOR service at random intervals.
- IP address change at random intervals
- Configurable time intervals
- Automatic TOR service restart
- IP address verification through multiple services
- Detailed logging
- Clean shutdown with signal handling
- Python 3.6+
- TOR service installed and configured
curlcommand available- Root privileges (recommended)
- Make the script executable:
chmod +x tor_ip_changer.py- Check if TOR service is running:
sudo systemctl status tor- If not running, start it:
sudo systemctl start tor
sudo systemctl enable torsudo python3 tor_ip_changer.py# Between 30-120 seconds
sudo python3 tor_ip_changer.py -m 30 -M 120
# Between 1-5 minutes
sudo python3 tor_ip_changer.py --min 60 --max 300-m, --min: Minimum waiting time in seconds (default: 60)-M, --max: Maximum waiting time in seconds (default: 300)--version: Show version
# Fast IP change (30-60 seconds)
sudo python3 tor_ip_changer.py -m 30 -M 60
# Slow IP change (5-15 minutes)
sudo python3 tor_ip_changer.py -m 300 -M 900
# Medium IP change (2-8 minutes)
sudo python3 tor_ip_changer.py -m 120 -M 480The script logs all operations to:
- Console (stdout)
tor_ip_changer.logfile
The script shuts down cleanly via:
Ctrl+C(SIGINT)killcommand (SIGTERM)
- The script runs with root privileges to manage TOR service
- Too frequent IP changes (under 30 seconds) are not recommended
- Check local laws before using TOR network
sudo systemctl start tor
sudo systemctl status tor- Check TOR configuration
- Wait longer for new IP address to be set
- Check log file
sudo chmod +x tor_ip_changer.py
sudo python3 tor_ip_changer.py- Version: 1.0
- Language: Python 3
- License: MIT
- Supported Systems: Linux (systemd)
If you experience issues or have suggestions, please create the appropriate issue.