mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 05:01:53 +08:00
fix: resolve recent service scan regressions
This commit is contained in:
@@ -34,6 +34,15 @@ func (p *VNCPlugin) Scan(ctx context.Context, info *common.HostInfo, session *co
|
||||
return result
|
||||
}
|
||||
|
||||
// -nobr 仅保留未授权访问检测,不继续尝试密码。
|
||||
if config.DisableBrute {
|
||||
return &ScanResult{
|
||||
Type: plugins.ResultTypeService,
|
||||
Success: true,
|
||||
Service: "vnc",
|
||||
}
|
||||
}
|
||||
|
||||
// 生成密码列表
|
||||
var credentials []Credential
|
||||
if config.Credentials.Passwords != nil {
|
||||
|
||||
Reference in New Issue
Block a user