An automated IP rotation tool developed for Educational Purposes Only. This script leverages the Tor network to programmatically change your public IP address at set intervals.
DISCLAIMER: This tool is developed for educational use only. Do not misuse it for any reason. The author is not responsible for any consequences resulting from the misuse of this script.
Before running the script, ensure your environment is updated and the necessary packages are installed.
- pkg update && pkg upgrade -y
- pkg install tor curl python netcat-openbsd -y
To allow the script to request a "New Identity" from Tor, you must enable the Control Port.
- Open the Tor configuration file:
- nano $PREFIX/etc/tor/torrc
- Add or uncomment these lines:
- ControlPort 9051
CookieAuthentication 0
- 1. Setup the Script
- pkg update && pkg upgrade -y
- pkg install tor curl python netcat-openbsd -y
- pkg install git -y
- git clone https://github.com/whitedevil-21/IP-CHANGER.git
- chmod +x ipchanger.sh
- bash ipchanger.sh
The script initializes a Tor circuit and enters a loop where it:
- Verifies the current IP via the Tor SOCKS5 proxy (
$127.0.0.1:9050$ ). - Sends a SIGNAL NEWNYM command to Tor's Control Port (
$9051$ ). - Forces a circuit switch to assign a new exit node (and therefore a new IP).
- Proxy Settings: This script only changes the IP of the Tor circuit. To route other apps through this IP, configure them to use the SOCKS5 proxy at 127.0.0.1:9050.
- Global Traffic: This tool does not act as a system-wide VPN. For full-device anonymity, consider using Orbot in VPN mode.
- Troubleshooting: If you see "connection refused," double-check that your torrc file was saved correctly and that Tor is running.
- If you'd like to improve the automation or add a Python wrapper, feel free to fork this repo and submit a PR!