About multi-layer-network
A multi-layer network penetration-testing methodology for security practitioners. It covers network discovery from a foothold, choosing tunnels based on egress conditions, and proceeding with internal reconnaissance while noting proxy limitations.
Key features
- 01Network discovery from a foothold
- 02Tunnel selection by egress conditions
- 03Tunnel and proxy tool comparison
- 04Internal reconnaissance and lateral movement steps
- 05Connection checks and record keeping
Use cases
- 01Assessing a DMZ host's network position
- 02Choosing a tunnel for network constraints
- 03Conducting internal reconnaissance through a proxy
- 04Troubleshooting proxychains limitations
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ wgpsec/ aboutsecurity --skill multi-layer-networkAfter installing, type/multi-layer-networkin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
evals/evals.jsonrecall.jsonreferences/tunnel-tools.mdDetails
From the project README多层网络渗透方法论
⛔ 深入参考(必读)
- 需要 frp/chisel/Neo-reGeorg/SSH 隧道配置命令、多跳代理链、proxychains 用法 → references/tunnel-tools.md
Phase 1: 边界突破与立足点
获取 DMZ 主机 Shell 后,立即收集网络信息:
ip addr && ip route && arp -a && cat /etc/hosts # Linux
ipconfig /all && route print && arp -a # Windows
关键判断:
- 双网卡(eth0=外网, eth1=10.x.x.x)→ 天然跳板
- 只有内网 IP → 需要搭建反向隧道
目标网络测绘
for i in $(seq 1 254); do ping -c 1 -W 1 10.0.0.$i &>/dev/null && echo "10.0.0.$i alive"; done
fscan -h 10.0.0.0/24 -nopoc
Phase 2: 隧道选择决策树
目标出网情况?
├─ 可出网(有外网访问)
│ ├─ 有 SSH 凭据?→ SSH -D 1080(零部署,最简单)
│ ├─ 需要长期稳定?→ frp(断线重连)
│ └─ 快速部署?→ chisel(单二进制)
├─ 仅 HTTP 出网 → Neo-reGeorg HTTP 隧道
└─ 完全不出网 → SSH 反向隧道 / 在跳板上中转
所有工具的详细配置命令见 → references/tunnel-tools.md
隧道工具选择速查
| 场景 | 推荐工具 | 原因 |
|---|---|---|
| 有 SSH 凭据 | SSH 隧道 | 零部署,最简单 |
| 目标出网 + 长期使用 | frp | 最稳定,支持断线重连 |
| 目标出网 + 快速部署 | chisel | 单二进制,无配置文件 |
| 仅 HTTP 出网 | Neo-reGeorg | HTTP 隧道穿越防火墙 |
| 高性能需求 | ligolo-ng | TUN 接口,接近原生性能 |
Phase 3: 深层渗透
通过代理进入内网后,按优先级:
- 内网侦察
- 域环境攻击
- 凭据喷洒
- 横向移动
注意事项
- proxychains 只支持 TCP,不支持 ICMP(ping 不可用,nmap 用
-Pn -sT) - 隧道建立后先
proxychains curl测试连通性再做大范围扫描 - 隧道进程容易中断,用
autossh或 frp 断线重连保持稳定 - 记录每一跳的凭据和隧道命令,便于重建
Proxychains 限制
- UDP 不支持:proxychains 仅代理 TCP,UDP 扫描(-sU)会失败
Comments
Markdown supported