tools: analyze_capture 私有网段判定通用化(去除部署环境具体网段)

This commit is contained in:
lou
2026-09-09 18:12:10 +08:00
parent fab0e8b20a
commit a34fe2f201
+2 -2
View File
@@ -9,7 +9,7 @@
4. 明文 HTTP 出站(应 0, 全被套壳)与 DNS 出站(应 0, 走通道)检查
5. 目标端口/目标 IP Top
"出站"判定: 源 IP 在 192.168.10.0/24(内网)或 192.168.0.0/16。
"出站"判定: 源 IP 在私有网段(192.168.0.0/16 等)视为内网侧
"""
from __future__ import annotations
@@ -22,7 +22,7 @@ from scapy.utils import rdpcap
CLOUD_IP = "203.0.113.10"
CLOUD_PORT = 8444
LAN_NETS = ("192.168.10.", "192.168.0.", "172.16.", "10.")
LAN_NETS = ("192.168.", "172.16.", "10.")
def _is_lan(ip: str) -> bool: