mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 23:25:27 +00:00
Auto Generate Syntax Docs + JSONSchema [Tue Mar 29 12:22:43 UTC 2022] 🤖
This commit is contained in:
parent
e8690f378d
commit
924b615a6c
@ -167,6 +167,7 @@ file:
|
|||||||
extensions:
|
extensions:
|
||||||
- all
|
- all
|
||||||
archive: false
|
archive: false
|
||||||
|
mimetype: false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -2572,6 +2573,7 @@ extractors:
|
|||||||
extensions:
|
extensions:
|
||||||
- all
|
- all
|
||||||
archive: false
|
archive: false
|
||||||
|
mimetype: false
|
||||||
```
|
```
|
||||||
|
|
||||||
Part Definitions:
|
Part Definitions:
|
||||||
@ -2646,7 +2648,7 @@ Valid values:
|
|||||||
</div>
|
</div>
|
||||||
<div class="dt">
|
<div class="dt">
|
||||||
|
|
||||||
Extensions is the list of extensions to perform matching on.
|
Extensions is the list of extensions or mime types to perform matching on.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2672,7 +2674,7 @@ extensions:
|
|||||||
</div>
|
</div>
|
||||||
<div class="dt">
|
<div class="dt">
|
||||||
|
|
||||||
DenyList is the list of file, directories or extensions to deny during matching.
|
DenyList is the list of file, directories, mime types or extensions to deny during matching.
|
||||||
|
|
||||||
By default, it contains some non-interesting extensions that are hardcoded
|
By default, it contains some non-interesting extensions that are hardcoded
|
||||||
in nuclei.
|
in nuclei.
|
||||||
|
|||||||
@ -451,7 +451,8 @@
|
|||||||
},
|
},
|
||||||
"file.Request": {
|
"file.Request": {
|
||||||
"required": [
|
"required": [
|
||||||
"Archive"
|
"Archive",
|
||||||
|
"MimeType"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"matchers": {
|
"matchers": {
|
||||||
@ -508,6 +509,9 @@
|
|||||||
"Archive": {
|
"Archive": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"MimeType": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"no-recursive": {
|
"no-recursive": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "do not perform recursion",
|
"title": "do not perform recursion",
|
||||||
|
|||||||
@ -1197,15 +1197,15 @@ func init() {
|
|||||||
FILERequestDoc.Fields[3].Name = "extensions"
|
FILERequestDoc.Fields[3].Name = "extensions"
|
||||||
FILERequestDoc.Fields[3].Type = "[]string"
|
FILERequestDoc.Fields[3].Type = "[]string"
|
||||||
FILERequestDoc.Fields[3].Note = ""
|
FILERequestDoc.Fields[3].Note = ""
|
||||||
FILERequestDoc.Fields[3].Description = "Extensions is the list of extensions to perform matching on."
|
FILERequestDoc.Fields[3].Description = "Extensions is the list of extensions or mime types to perform matching on."
|
||||||
FILERequestDoc.Fields[3].Comments[encoder.LineComment] = "Extensions is the list of extensions to perform matching on."
|
FILERequestDoc.Fields[3].Comments[encoder.LineComment] = "Extensions is the list of extensions or mime types to perform matching on."
|
||||||
|
|
||||||
FILERequestDoc.Fields[3].AddExample("", []string{".txt", ".go", ".json"})
|
FILERequestDoc.Fields[3].AddExample("", []string{".txt", ".go", ".json"})
|
||||||
FILERequestDoc.Fields[4].Name = "denylist"
|
FILERequestDoc.Fields[4].Name = "denylist"
|
||||||
FILERequestDoc.Fields[4].Type = "[]string"
|
FILERequestDoc.Fields[4].Type = "[]string"
|
||||||
FILERequestDoc.Fields[4].Note = ""
|
FILERequestDoc.Fields[4].Note = ""
|
||||||
FILERequestDoc.Fields[4].Description = "DenyList is the list of file, directories or extensions to deny during matching.\n\nBy default, it contains some non-interesting extensions that are hardcoded\nin nuclei."
|
FILERequestDoc.Fields[4].Description = "DenyList is the list of file, directories, mime types or extensions to deny during matching.\n\nBy default, it contains some non-interesting extensions that are hardcoded\nin nuclei."
|
||||||
FILERequestDoc.Fields[4].Comments[encoder.LineComment] = "DenyList is the list of file, directories or extensions to deny during matching."
|
FILERequestDoc.Fields[4].Comments[encoder.LineComment] = "DenyList is the list of file, directories, mime types or extensions to deny during matching."
|
||||||
|
|
||||||
FILERequestDoc.Fields[4].AddExample("", []string{".avi", ".mov", ".mp3"})
|
FILERequestDoc.Fields[4].AddExample("", []string{".avi", ".mov", ".mp3"})
|
||||||
FILERequestDoc.Fields[5].Name = "id"
|
FILERequestDoc.Fields[5].Name = "id"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user