mirror of https://github.com/daffainfo/nuclei.git
adding integration test
parent
18e2d2cb24
commit
200faa107e
|
@ -0,0 +1,18 @@
|
|||
id: file-matcher-with-nested-and
|
||||
|
||||
info:
|
||||
name: File Matcher With nested AND
|
||||
author: pdteam
|
||||
severity: info
|
||||
tags: file
|
||||
|
||||
file:
|
||||
- extensions:
|
||||
- all
|
||||
|
||||
matchers:
|
||||
- type: word
|
||||
words:
|
||||
- "CCC"
|
||||
- "DDD"
|
||||
condition: and
|
|
@ -5,9 +5,10 @@ import (
|
|||
)
|
||||
|
||||
var fileTestcases = map[string]testutils.TestCase{
|
||||
"file/matcher-with-or.yaml": &fileWithOrMatcher{},
|
||||
"file/matcher-with-and.yaml": &fileWithAndMatcher{},
|
||||
"file/extract.yaml": &fileWithExtractor{},
|
||||
"file/matcher-with-or.yaml": &fileWithOrMatcher{},
|
||||
"file/matcher-with-and.yaml": &fileWithAndMatcher{},
|
||||
"file/matcher-with-nested-and.yaml": &fileWithAndMatcher{},
|
||||
"file/extract.yaml": &fileWithExtractor{},
|
||||
}
|
||||
|
||||
type fileWithOrMatcher struct{}
|
||||
|
|
Loading…
Reference in New Issue