mirror of https://github.com/daffainfo/nuclei.git
test: introduce 'concat' DSL function
* correct order and number of expected resultsdev
parent
d4a015fb47
commit
286e27510d
|
@ -14,8 +14,8 @@ requests:
|
|||
02: {{base64(1234)}}
|
||||
03: {{base64_decode("SGVsbG8=")}}
|
||||
04: {{base64_py("Hello")}}
|
||||
05: {{contains("Hello", "lo")}}
|
||||
06: {{concat("Hello", "world")}}
|
||||
05: {{concat("Hello", "world")}}
|
||||
06: {{contains("Hello", "lo")}}
|
||||
07: {{generate_java_gadget("commons-collections3.1", "wget http://{{interactsh-url}}", "base64")}}
|
||||
08: {{gzip("Hello")}}
|
||||
09: {{hex_decode("6161")}}
|
||||
|
|
|
@ -224,7 +224,7 @@ func (h *httpDSLFunctions) Execute(filePath string) error {
|
|||
}
|
||||
|
||||
totalExtracted := strings.Split(submatch[1], ",")
|
||||
numberOfDslFunctions := 53
|
||||
numberOfDslFunctions := 54
|
||||
if len(totalExtracted) != numberOfDslFunctions {
|
||||
return errors.New("incorrect number of results")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue