feat: add curated internal network pocs

This commit is contained in:
ZacharyZcR
2026-07-16 01:45:09 +08:00
parent 61ae87d171
commit 621b2c2f24
52 changed files with 1230 additions and 0 deletions
+19
View File
@@ -216,6 +216,25 @@ func TestBuildTargetURL(t *testing.T) {
}
}
func TestEmbeddedPocsLoad(t *testing.T) {
entries, err := pocsFS.ReadDir("pocs")
if err != nil {
t.Fatal(err)
}
for _, entry := range entries {
if !isPocFile(entry.Name()) {
continue
}
t.Run(entry.Name(), func(t *testing.T) {
if _, err := lib.LoadPoc(entry.Name(), pocsFS); err != nil {
t.Fatal(err)
}
})
}
}
func TestBuildTargetURLErrors(t *testing.T) {
tests := []struct {
name string