mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
feat: add curated internal network pocs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user