Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
shadow1ng
2021-06-18 09:57:27 +08:00
8 changed files with 82 additions and 106 deletions
+11
View File
@@ -4,6 +4,7 @@ import (
"embed"
"fmt"
"github.com/google/cel-go/cel"
"github.com/shadow1ng/fscan/WebScan/info"
"github.com/shadow1ng/fscan/common"
"math/rand"
"net/http"
@@ -689,3 +690,13 @@ func evalset(env *cel.Env, variableMap map[string]interface{}) {
}
}
}
func CheckInfoPoc(infostr string) string {
for _, poc := range info.PocDatas {
if strings.Compare(poc.Name,infostr) == 0 {
return poc.Alias
}
}
return ""
}