mcpField
M
multi-layer-network

multi-layer-network

github.com/wgpsecSecurity1.8k49 installsUpdated 4d ago
Repository

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

  1. 01Network discovery from a foothold
  2. 02Tunnel selection by egress conditions
  3. 03Tunnel and proxy tool comparison
  4. 04Internal reconnaissance and lateral movement steps
  5. 05Connection checks and record keeping

Use cases

  1. 01Assessing a DMZ host's network position
  2. 02Choosing a tunnel for network constraints
  3. 03Conducting internal reconnaissance through a proxy
  4. 04Troubleshooting proxychains limitations

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/wgpsec/aboutsecurity --skill multi-layer-network

After installing, type/multi-layer-networkin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

evals/
evals.json
recall.json
references/
tunnel-tools.md

Details

From the project README

多层网络渗透方法论

⛔ 深入参考(必读)


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-reGeorgHTTP 隧道穿越防火墙
高性能需求ligolo-ngTUN 接口,接近原生性能

Phase 3: 深层渗透

通过代理进入内网后,按优先级:

  1. 内网侦察
  2. 域环境攻击
  3. 凭据喷洒
  4. 横向移动

注意事项

  • proxychains 只支持 TCP,不支持 ICMP(ping 不可用,nmap 用 -Pn -sT)
  • 隧道建立后先 proxychains curl 测试连通性再做大范围扫描
  • 隧道进程容易中断,用 autossh 或 frp 断线重连保持稳定
  • 记录每一跳的凭据和隧道命令,便于重建

Proxychains 限制

  • UDP 不支持:proxychains 仅代理 TCP,UDP 扫描(-sU)会失败

Comments

Markdown supported