feat: 添加 -nsp 参数禁用网段预筛

大规模扫描时 probeSubnets 会自动跳过空 /24 网段,
部分场景下用户需要关闭此优化以扫描全部目标。
新增 -nsp (no subnet probe) 参数控制。
This commit is contained in:
ZacharyZcR
2026-06-27 16:23:51 +08:00
parent ed2f947722
commit 4976cb1f6b
9 changed files with 20 additions and 7 deletions
+2
View File
@@ -41,6 +41,7 @@ type FlagVars struct {
GlobalTimeout int64
DisablePing bool
DisableTcpProbe bool
DisableSubnetProbe bool
LocalPlugin string
AliveOnly bool
DisableBrute bool
@@ -150,6 +151,7 @@ func BuildConfigFromFlags(fv *FlagVars) *Config {
DisableBrute: fv.DisableBrute,
DisablePing: fv.DisablePing,
DisableTcpProbe: fv.DisableTcpProbe,
DisableSubnetProbe: fv.DisableSubnetProbe,
// 扫描模式
Mode: fv.ScanMode,