修复默认扫描 POC 结果缺失 #586
测试构建 / 代码检查 (push) Has been cancelled
测试构建 / 单元测试和构建 (push) Has been cancelled
测试构建 / 构建验证 (push) Has been cancelled

This commit is contained in:
ZacharyZcR
2026-06-04 14:41:49 +08:00
parent 68f990d20b
commit 4198c1abc8
5 changed files with 125 additions and 40 deletions
+4 -1
View File
@@ -326,7 +326,10 @@ func executeRules(oReq *http.Request, p *Poc, variableMap map[string]interface{}
success := false
if len(p.Rules) > 0 {
success = executeRuleSet(p.Rules)
return success, "", nil
if success {
return true, p.Name, nil
}
return false, "", nil
}
for _, item := range p.Groups {
name, rules := item.Key, item.Value