Skip to content

Commit 6285b3d

Browse files
committed
fixed xrayPocs功能存在问题 #72 2022-08-03
1 parent b5a4576 commit 6285b3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pocs_yml/utils/load.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ func SelectPoc(Pocs embed.FS, pocname string) []string {
3939
}
4040
var foundFiles []string
4141
for _, entry := range entries {
42-
if strings.HasPrefix(entry.Name(), pocname+"-") {
42+
//if strings.HasPrefix(entry.Name(), pocname+"-") {
43+
if -1 < strings.Index(entry.Name(), pocname) {
4344
foundFiles = append(foundFiles, entry.Name())
4445
}
4546
}

0 commit comments

Comments
 (0)