mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-24 04:01:52 +08:00
fix: 补全 HTTP/TLS proxy stats 加锁,修复 RPC/SMB 解析越界和 POC 加载逻辑
- httpdialer.go/tlsdialer.go: LastError/LastConnectTime/AverageConnectTime 加 mutex - findnet.go: RPC 响应结束标记位置 < 4 时跳过截断,防止负数切片 panic - ms17010.go: SMB 会话响应最小长度改为 45,sessionSetupResponse 加长度校验 - web_scan.go: POC 加载失败时不标记 pocLoaded,允许后续重试 - Eval.go: DNSLog 配置去掉 sync.Once,允许多次扫描更新配置
This commit is contained in:
+3
-1
@@ -56,7 +56,9 @@ func WebScan(ctx context.Context, info *common.HostInfo, cfg *common.Config) {
|
||||
if !pocLoaded {
|
||||
cachedPocPath = cfg.POC.PocPath
|
||||
initPocs()
|
||||
pocLoaded = true
|
||||
if len(allPocs) > 0 {
|
||||
pocLoaded = true
|
||||
}
|
||||
}
|
||||
pocMu.Unlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user