mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
feat: 添加 -nsp 参数禁用网段预筛
大规模扫描时 probeSubnets 会自动跳过空 /24 网段, 部分场景下用户需要关闭此优化以扫描全部目标。 新增 -nsp (no subnet probe) 参数控制。
This commit is contained in:
+4
-2
@@ -38,8 +38,9 @@ type ScanRequest struct {
|
||||
ThreadNum int `json:"thread_num"`
|
||||
Timeout int `json:"timeout"`
|
||||
ModuleThreadNum int `json:"module_thread_num"`
|
||||
DisablePing bool `json:"disable_ping"`
|
||||
DisableBrute bool `json:"disable_brute"`
|
||||
DisablePing bool `json:"disable_ping"`
|
||||
DisableBrute bool `json:"disable_brute"`
|
||||
DisableSubnetProbe bool `json:"disable_subnet_probe"`
|
||||
AliveOnly bool `json:"alive_only"`
|
||||
|
||||
// 认证
|
||||
@@ -199,6 +200,7 @@ func (h *ScanHandler) runScan(req ScanRequest) {
|
||||
}
|
||||
fv.DisablePing = req.DisablePing
|
||||
fv.DisableBrute = req.DisableBrute
|
||||
fv.DisableSubnetProbe = req.DisableSubnetProbe
|
||||
fv.AliveOnly = req.AliveOnly
|
||||
fv.Username = req.Username
|
||||
fv.Password = req.Password
|
||||
|
||||
Reference in New Issue
Block a user