
IPChanger is a lightweight command-line tool designed for ethical hackers, security researchers, and privacy enthusiasts. It allows users to automatically change their IP address at defined intervals by leveraging the Tor network, helping simulate different network identities during security testing, anonymity research, and penetration testing.
一款强大的基于 Tor 的 IP 轮换 CLI 工具,可按照指定时间间隔自动更改您的公共 IP 地址,并在简洁的终端表格中显示。
由 @CappricioSec 用 ❤️ 打造

⚠️ 仅供教育和隐私测试用途。 请勿将此工具用于非法活动。
figlet 驱动的精美横幅语言
使用的库
axioscommandercli-table3figletchalkipchanger/
├── includes/
│ ├── banner.js # banner, UI and help menu
│ ├── ip.js # Tor connection and public IP fetching
│ ├── utils.js # Tor checks and CLI argument handling
│
├── ipchanger.js # main CLI entry point
├── package.json
└── README.md
首先确保您的系统已安装 Tor。
下载 Tor:
sudo apt install torbrew install tor然后全局安装 CLI:
npm install -g @karthithehacker/ipchanger
ipchanger -s 5
| 命令 | 描述 |
|---|---|
-s <seconds> | 每指定秒数轮换 IP |
-h | 显示帮助菜单 |
┌──(karthithehacker㉿BOOK-UVR5FJ22CV)-[~]
└─$ ipchanger -s 10
██╗██████╗ ██████╗██╗ ██╗ █████╗ ███╗ ██╗ ██████╗ ███████╗██████╗
██║██╔══██╗ ██╔════╝██║ ██║██╔══██╗████╗ ██║██╔════╝ ██╔════╝██╔══██╗
██║██████╔╝ ██║ ███████║███████║██╔██╗ ██║██║ ███╗█████╗ ██████╔╝
██║██╔═══╝ ██║ ██╔══██║██╔══██║██║╚██╗██║██║ ██║██╔══╝ ██╔══██╗
██║██║ ╚██████╗██║ ██║██║ ██║██║ ╚████║╚██████╔╝███████╗██║ ██║
╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝
Website: cappriciosec.com
┌─────────────────────────┬────────────────────────────────────────┐
│ Service │ Information │
├─────────────────────────┼────────────────────────────────────────┤
│ Tor Status │ Tor service started │
├─────────────────────────┼────────────────────────────────────────┤
│ IP Rotation │ IP change every 10 sec │
├─────────────────────────┼────────────────────────────────────────┤
│ Terminate │ Press X to terminate │
└─────────────────────────┴────────────────────────────────────────┘
[3:23:32 AM] Current IP → 107.189.3.148
[3:23:56 AM] Current IP → 192.42.116.144
[3:24:00 AM] Current IP → 109.70.100.9
[3:24:16 AM] Current IP → 109.70.100.3
[3:24:20 AM] Current IP → 107.189.10.175
[3:24:36 AM] Current IP → 45.134.225.36
[3:24:39 AM] Current IP → 109.70.100.7
[3:24:56 AM] Current IP → 192.159.99.168
┌──(karthithehacker㉿BOOK-UVR5FJ22CV)-[~]
└─$ ipchanger -h
██╗██████╗ ██████╗██╗ ██╗ █████╗ ███╗ ██╗ ██████╗ ███████╗██████╗
██║██╔══██╗ ██╔════╝██║ ██║██╔══██╗████╗ ██║██╔════╝ ██╔════╝██╔══██╗
██║██████╔╝ ██║ ███████║███████║██╔██╗ ██║██║ ███╗█████╗ ██████╔╝
██║██╔═══╝ ██║ ██╔══██║██╔══██║██║╚██╗██║██║ ██║██╔══╝ ██╔══██╗
██║██║ ╚██████╗██║ ██║██║ ██║██║ ╚████║╚██████╔╝███████╗██║ ██║
╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝
Website: cappriciosec.com
Usage:
ipchanger -s <seconds> Restart Tor every X seconds
ipchanger -h Show help
┌────────────────────┬───────────────────────────────────────────────────────┬─────────────────────────────────────────────┐
│ Application │ Command / Steps │ Description │
├────────────────────┼───────────────────────────────────────────────────────┼─────────────────────────────────────────────┤
│ Chromium │ chromium --proxy-server="socks5://127.0.0.1:9050" │ Launch Chromium with SOCKS5 proxy enabled │
├────────────────────┼───────────────────────────────────────────────────────┼─────────────────────────────────────────────┤
│ Chrome │ chrome --proxy-server="socks5://127.0.0.1:9050" │ Launch Google Chrome with SOCKS5 proxy │
├────────────────────┼───────────────────────────────────────────────────────┼─────────────────────────────────────────────┤
│ Firefox │ Settings → Preferences → Network Settings → Manual │ Configure Firefox via UI to use SOCKS5 │
│ │ Proxy → SOCKS Host: 127.0.0.1 Port: 9050 SOCKS v5 → │ proxy │
│ │ Enable Proxy DNS │ │
├────────────────────┼───────────────────────────────────────────────────────┼─────────────────────────────────────────────┤
│ Linux (system) │ export ALL_PROXY="socks5h://127.0.0.1:9050" │ Set proxy for terminal apps (session only) │
├────────────────────┼───────────────────────────────────────────────────────┼─────────────────────────────────────────────┤
│ Linux │ Add socks5 127.0.0.1 9050 to /etc/proxychains.conf → │ Force any application to use SOCKS5 proxy │
│ (proxychains) │ proxychains4 <command> │ │
├────────────────────┼───────────────────────────────────────────────────────┼─────────────────────────────────────────────┤
│ macOS │ sudo networksetup -setsocksfirewallproxy "Wi-Fi" │ Apply SOCKS5 proxy to Wi-Fi network │
│ │ 127.0.0.1 9050 │ │
├────────────────────┼───────────────────────────────────────────────────────┼─────────────────────────────────────────────┤
│ Windows │ Use Proxifier / ProxyCap → Add Proxy: 127.0.0.1:9050 │ Windows requires helper tool for global │
│ │ (SOCKS5) │ SOCKS proxy │
└────────────────────┴───────────────────────────────────────────────────────┴─────────────────────────────────────────────┘
程序运行期间,您可以:
| 操作 | 结果 |
|---|---|
x + Enter | 退出程序 |
输入数字(例如:10) | 将间隔更改为 10 秒 |
该工具使用 Tor SOCKS 代理。
默认 Tor 端口:
127.0.0.1:9050
如果 Tor 未运行,该工具将尝试自动启动它。
该 CLI 每次刷新时都会使用以下命令请求新的 Tor 电路:
SIGNAL NEWNYM
这需要 Tor 控制端口 (9051)。
将此内容添加到您的 torrc 文件中:
ControlPort 9051
CookieAuthentication 1
更新后重启 Tor。
示例警告:
warning: could not rotate Tor circuit: connect ECONNREFUSED 127.0.0.1:9051
KarthiTheHacker
此工具严格用于教育和隐私测试目的。
请不要将此工具用于:
开发者对滥用行为不承担任何责任。
< 由关心安全的黑客打造 — Cappricio Securities 团队。 />
www.cappriciosec.com
| 连接目标 | 命令 / 步骤 | 描述 |
|---|
Chromium | chromium --proxy-server="socks5://127.0.0.1:9050" | 启动 Chromium 并启用 SOCKS5 代理。 |
Chrome | chrome --proxy-server="socks5://127.0.0.1:9050" | 使用 SOCKS5 代理启动 Google Chrome。 |
Firefox | 设置 → 首选项 → 网络设置 → 手动代理 → SOCKS 主机:127.0.0.1,端口:9050,SOCKS v5 → 启用 代理 DNS | 通过 UI 配置 Firefox 使用 SOCKS5 代理。 |
Linux(系统级) | export ALL_PROXY="socks5h://127.0.0.1:9050" | 为终端应用设置代理(仅当前会话生效)。 |
Linux(proxychains) | 将 socks5 127.0.0.1 9050 添加到 /etc/proxychains.conf → 运行:proxychains4 <command> | 强制任意应用使用 SOCKS5 代理。 |
macOS(系统级) | sudo networksetup -setsocksfirewallproxy "Wi-Fi" 127.0.0.1 9050 | 将 SOCKS5 代理应用到 Wi-Fi 网络。 |
Windows(系统级) | 使用 Proxifier / ProxyCap → 添加代理:127.0.0.1:9050(SOCKS5)→ 应用规则 | Windows GUI 不支持全局 SOCKS,需要辅助工具。 |