一个用于生成混淆 IP 地址和 URL 的安全测试工具包。适用于渗透测试、安全研究、钓鱼意识培训以及测试 URL 解析器/过滤器。
该工具包提供两种界面:
ip_obfuscator.html - 基于 Web 的图形界面,用于交互式使用ip_obfuscator.py - 命令行工具,用于脚本编写和自动化两种工具生成相同的混淆技术,包括:
@ 的伪造域名)ip_obfuscator.html)在任何现代浏览器中打开 ip_obfuscator.html。无需服务器。
192.168.1.100)@ 技巧设置伪造域名(例如 secure.bank.com)ip_obfuscator.py)# Show all obfuscation formats for an IP
python3 ip_obfuscator.py 192.168.1.100
# Generate obfuscated URLs
python3 ip_obfuscator.py 192.168.1.100 --url
# With fake domain and path
python3 ip_obfuscator.py 192.168.1.100 --url --fake-domain secure.bank.com --path /login
| 选项 | 短选项 | 描述 |
|---|---|---|
--url | -u | 生成完整 URL 而不仅仅是 IP 格式 |
--fake-domain | -f | 用于 @ 技巧的伪造域名(默认:google.com) |
--fake-pass | -w | 用于 user:pass@host 格式的伪造密码 |
--path | -p | URL 路径(默认:/) |
--port | -P | 端口号 |
--https | -s | 使用 HTTPS 而非 HTTP |
--json | -j | 以 JSON 格式输出 |
--filter | -F | 按关键字过滤结果 |
--list | -l | 紧凑列表输出(仅值) |
--zones | -z | 分析 Windows 安全区域影响 |
--decode | -d | 将混淆的 IP 解码回标准形式 |
python3 ip_obfuscator.py 192.168.1.100 --url --fake-domain secure.bank.com --path /login
输出:
================================================================================
OBFUSCATED URL GENERATOR
================================================================================
Target IP: 192.168.1.100
Fake Domain: secure.bank.com
Fake Password: (none)
Port: (default)
Path: /login
Protocol: HTTP
================================================================================
DWORD/INTEGER FORMATS
--------------------------------------------------------------------------------
Standard (no obfuscation):
http://192.168.1.100/login
Decimal DWORD:
http://3232235876/login
Hex DWORD:
http://0xC0A80164/login
Octal DWORD:
http://030052000544/login
...
python3 ip_obfuscator.py 192.168.1.100 --url --fake-domain secure.bank.com --filter "fake auth" --json
输出:
{
"Fake Auth + Decimal DWORD": "http://secure.bank.com@3232235876/",
"Fake Auth + Hex DWORD": "http://secure.bank.com@0xc0a80164/",
"Fake Auth + Octal DWORD": "http://secure.bank.com@030052000544/",
"Fake Auth + Dotted Hex": "http://[email protected]/",
"Fake Auth + Dotted Octal": "http://[email protected]/",
"Fake Auth + IPv6 Mapped (hex)": "http://secure.bank.com@[::ffff:c0a8:164]/",
"Fake Auth + IPv6 Mapped (decimal)": "http://secure.bank.com@[::ffff:192.168.1.100]/",
"Fake Auth + IPv6 Mapped (full)": "http://secure.bank.com@[0000:0000:0000:0000:0000:ffff:c0a8:0164]/",
"Fake Auth + Class B": "http://[email protected]/",
"Fake Auth + Class C": "http://[email protected]/"
}
python3 ip_obfuscator.py 192.168.1.100 --url --https --filter ipv6
python3 ip_obfuscator.py 192.168.1.100 --list --filter ipv6
输出:
All obfuscated forms of 192.168.1.100:
::ffff:192.168.1.100
::ffff:c0a8:164
0000:0000:0000:0000:0000:ffff:c0a8:0164
0:0:0:0:0:ffff:c0a8:164
::ffff:c0a80164
::192.168.1.100
::c0a8:164
[::ffff:c0a8:164]
[::ffff:192.168.1.100]
[0000:0000:0000:0000:0000:ffff:c0a8:0164]
python3 ip_obfuscator.py --decode "http://secure.bank.com@3232235876/login"
输出:
Input: http://secure.bank.com@3232235876/login
Decoded: 192.168.1.100
python3 ip_obfuscator.py 192.168.1.100 --zones
输出:
================================================================================
MICROSOFT SECURITY ZONES ANALYSIS
================================================================================
The 'Dot Rule' (PlainHostName rule):
• Hostname WITHOUT dots → Local Intranet Zone
• Hostname WITH dots → Internet Zone
⚠️ SECURITY IMPACT of Intranet Zone:
• Automatic NTLM/Kerberos credential release (credential theft!)
• Less restrictive ActiveX/script policies
• May bypass security prompts and Mark-of-the-Web
================================================================================
Target IP: 192.168.1.100
================================================================================
🔴 DOTLESS → LOCAL INTRANET ZONE (HIGH RISK - credential leak)
--------------------------------------------------------------------------------
Decimal DWORD
URL: http://3232235876/
Note: CONFIRMED: MS98-016 specifically documents this as Intranet Zone bypass
Hex DWORD (0x prefix)
URL: http://0xC0A80164/
Note: CONFIRMED: Numeric hostname without dots → Intranet Zone
Octal DWORD
URL: http://030052000544/
Note: Octal integer without dots → Intranet Zone
🟢 DOTTED → INTERNET ZONE (normal security)
--------------------------------------------------------------------------------
Standard Dotted Decimal
URL: http://192.168.1.100/
Dotted Hex
URL: http://0xC0.0xA8.0x1.0x64/
...
| 分类 | 示例 | 描述 |
|---|---|---|
| 十进制 DWORD | 3232235876 | 32 位整数表示 |
| 十六进制 DWORD | 0xC0A80164 | 十六进制整数 |
| 八进制 DWORD | 030052000544 | 八进制整数(前导零) |
| 点分十六进制 | 0xC0.0xA8.0x1.0x64 | 每个八位组以十六进制表示 |
| 点分八进制 | 0300.0250.01.0144 | 每个八位组以八进制表示 |
| 混合进制 | 192.0xa8.01.100 | 十进制/十六进制/八进制组合 |
| B 类 | 192.11010404 | 第一个八位组 + 24 位值 |
| C 类 | 192.168.356 | 两个八位组 + 16 位值 |
| IPv6 映射 | ::ffff:c0a8:164 | IPv4 映射的 IPv6 地址 |
| 伪造认证 | secure.bank.com@IP | URL 权威部分技巧 |
| 溢出 | 7527203172 | 值 + 2^32(回绕) |
此工具适用于:
请勿用于恶意目的。
MIT 许可证 - 请负责任地使用。