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
|
```yaml
|
||||||
requests:
|
requests:
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: 1
|
||||||
words:
|
words:
|
||||||
- '[core]'
|
- '[core]'
|
||||||
- type: dsl
|
- type: 6
|
||||||
condition: and
|
condition: and
|
||||||
dsl:
|
dsl:
|
||||||
- '!contains(tolower(body), ''<html'')'
|
- '!contains(tolower(body), ''<html'')'
|
||||||
- '!contains(tolower(body), ''<body'')'
|
- '!contains(tolower(body), ''<body'')'
|
||||||
- type: status
|
- type: 4
|
||||||
status:
|
status:
|
||||||
- 200
|
- 200
|
||||||
matchers-condition: and
|
matchers-condition: and
|
||||||
|
@ -194,7 +194,7 @@ network:
|
||||||
- data: "envi\r\nquit\r\n"
|
- data: "envi\r\nquit\r\n"
|
||||||
read-size: 2048
|
read-size: 2048
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: 1
|
||||||
words:
|
words:
|
||||||
- zookeeper.version
|
- zookeeper.version
|
||||||
```
|
```
|
||||||
|
@ -688,15 +688,15 @@ Appears in:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: 1
|
||||||
words:
|
words:
|
||||||
- '[core]'
|
- '[core]'
|
||||||
- type: dsl
|
- type: 6
|
||||||
condition: and
|
condition: and
|
||||||
dsl:
|
dsl:
|
||||||
- '!contains(tolower(body), ''<html'')'
|
- '!contains(tolower(body), ''<html'')'
|
||||||
- '!contains(tolower(body), ''<body'')'
|
- '!contains(tolower(body), ''<body'')'
|
||||||
- type: status
|
- type: 4
|
||||||
status:
|
status:
|
||||||
- 200
|
- 200
|
||||||
matchers-condition: and
|
matchers-condition: and
|
||||||
|
@ -1274,7 +1274,7 @@ Appears in:
|
||||||
|
|
||||||
<div class="dd">
|
<div class="dd">
|
||||||
|
|
||||||
<code>type</code> <i>string</i>
|
<code>type</code> <i>MatcherTypeHolder</i>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="dt">
|
<div class="dt">
|
||||||
|
@ -2396,7 +2396,7 @@ inputs:
|
||||||
- data: "envi\r\nquit\r\n"
|
- data: "envi\r\nquit\r\n"
|
||||||
read-size: 2048
|
read-size: 2048
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: 1
|
||||||
words:
|
words:
|
||||||
- zookeeper.version
|
- zookeeper.version
|
||||||
```
|
```
|
||||||
|
|
|
@ -211,15 +211,8 @@
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {
|
"type": {
|
||||||
"enum": [
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
"status",
|
"$ref": "#/definitions/matchers.MatcherTypeHolder",
|
||||||
"size",
|
|
||||||
"word",
|
|
||||||
"regex",
|
|
||||||
"binary",
|
|
||||||
"dsl"
|
|
||||||
],
|
|
||||||
"type": "string",
|
|
||||||
"title": "type of matcher",
|
"title": "type of matcher",
|
||||||
"description": "Type of the matcher"
|
"description": "Type of the matcher"
|
||||||
},
|
},
|
||||||
|
@ -312,6 +305,19 @@
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"type": "object"
|
"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": {
|
"generators.AttackTypeHolder": {
|
||||||
"enum": [
|
"enum": [
|
||||||
"batteringram",
|
"batteringram",
|
||||||
|
|
|
@ -497,7 +497,7 @@ func init() {
|
||||||
}
|
}
|
||||||
MATCHERSMatcherDoc.Fields = make([]encoder.Doc, 13)
|
MATCHERSMatcherDoc.Fields = make([]encoder.Doc, 13)
|
||||||
MATCHERSMatcherDoc.Fields[0].Name = "type"
|
MATCHERSMatcherDoc.Fields[0].Name = "type"
|
||||||
MATCHERSMatcherDoc.Fields[0].Type = "string"
|
MATCHERSMatcherDoc.Fields[0].Type = "MatcherTypeHolder"
|
||||||
MATCHERSMatcherDoc.Fields[0].Note = ""
|
MATCHERSMatcherDoc.Fields[0].Note = ""
|
||||||
MATCHERSMatcherDoc.Fields[0].Description = "Type is the type of the matcher."
|
MATCHERSMatcherDoc.Fields[0].Description = "Type is the type of the matcher."
|
||||||
MATCHERSMatcherDoc.Fields[0].Comments[encoder.LineComment] = "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