mirror of https://github.com/daffainfo/nuclei.git
Auto Generate Syntax Docs + JSONSchema [Fri Nov 19 10:55:27 UTC 2021] 🤖
parent
4b8ec29d8d
commit
b8246ab8e5
|
@ -87,15 +87,15 @@ Examples:
|
|||
```yaml
|
||||
requests:
|
||||
matchers:
|
||||
- type: word
|
||||
- type: 1
|
||||
words:
|
||||
- '[core]'
|
||||
- type: dsl
|
||||
- type: 6
|
||||
condition: and
|
||||
dsl:
|
||||
- '!contains(tolower(body), ''<html'')'
|
||||
- '!contains(tolower(body), ''<body'')'
|
||||
- type: status
|
||||
- type: 4
|
||||
status:
|
||||
- 200
|
||||
matchers-condition: and
|
||||
|
@ -194,7 +194,7 @@ network:
|
|||
- data: "envi\r\nquit\r\n"
|
||||
read-size: 2048
|
||||
matchers:
|
||||
- type: word
|
||||
- type: 1
|
||||
words:
|
||||
- zookeeper.version
|
||||
```
|
||||
|
@ -688,15 +688,15 @@ Appears in:
|
|||
|
||||
```yaml
|
||||
matchers:
|
||||
- type: word
|
||||
- type: 1
|
||||
words:
|
||||
- '[core]'
|
||||
- type: dsl
|
||||
- type: 6
|
||||
condition: and
|
||||
dsl:
|
||||
- '!contains(tolower(body), ''<html'')'
|
||||
- '!contains(tolower(body), ''<body'')'
|
||||
- type: status
|
||||
- type: 4
|
||||
status:
|
||||
- 200
|
||||
matchers-condition: and
|
||||
|
@ -1274,7 +1274,7 @@ Appears in:
|
|||
|
||||
<div class="dd">
|
||||
|
||||
<code>type</code> <i>string</i>
|
||||
<code>type</code> <i>MatcherTypeHolder</i>
|
||||
|
||||
</div>
|
||||
<div class="dt">
|
||||
|
@ -2396,7 +2396,7 @@ inputs:
|
|||
- data: "envi\r\nquit\r\n"
|
||||
read-size: 2048
|
||||
matchers:
|
||||
- type: word
|
||||
- type: 1
|
||||
words:
|
||||
- zookeeper.version
|
||||
```
|
||||
|
|
|
@ -211,15 +211,8 @@
|
|||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"status",
|
||||
"size",
|
||||
"word",
|
||||
"regex",
|
||||
"binary",
|
||||
"dsl"
|
||||
],
|
||||
"type": "string",
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"$ref": "#/definitions/matchers.MatcherTypeHolder",
|
||||
"title": "type of matcher",
|
||||
"description": "Type of the matcher"
|
||||
},
|
||||
|
@ -312,6 +305,19 @@
|
|||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"matchers.MatcherTypeHolder": {
|
||||
"enum": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"type": "string",
|
||||
"title": "type of the matcher",
|
||||
"description": "Type of the matcher,enum=status,enum=size,enum=word,enum=regex,enum=binary,enum=dsl"
|
||||
},
|
||||
"generators.AttackTypeHolder": {
|
||||
"enum": [
|
||||
"batteringram",
|
||||
|
|
|
@ -497,7 +497,7 @@ func init() {
|
|||
}
|
||||
MATCHERSMatcherDoc.Fields = make([]encoder.Doc, 13)
|
||||
MATCHERSMatcherDoc.Fields[0].Name = "type"
|
||||
MATCHERSMatcherDoc.Fields[0].Type = "string"
|
||||
MATCHERSMatcherDoc.Fields[0].Type = "MatcherTypeHolder"
|
||||
MATCHERSMatcherDoc.Fields[0].Note = ""
|
||||
MATCHERSMatcherDoc.Fields[0].Description = "Type is the type of the matcher."
|
||||
MATCHERSMatcherDoc.Fields[0].Comments[encoder.LineComment] = "Type is the type of the matcher."
|
||||
|
|
Loading…
Reference in New Issue