mirror of https://github.com/daffainfo/nuclei.git
Auto Generate Syntax Docs + JSONSchema [Thu Nov 18 20:12:46 UTC 2021] 🤖
parent
2856e7e247
commit
5a0f483cd3
|
@ -1658,7 +1658,7 @@ name: cookie-extractor
|
|||
|
||||
<div class="dd">
|
||||
|
||||
<code>type</code> <i>string</i>
|
||||
<code>type</code> <i>TypeHolder</i>
|
||||
|
||||
</div>
|
||||
<div class="dt">
|
||||
|
@ -2879,7 +2879,7 @@ Description is the optional description of the headless action
|
|||
|
||||
<div class="dd">
|
||||
|
||||
<code>action</code> <i>string</i>
|
||||
<code>action</code> <i>ActionTypeHolder</i>
|
||||
|
||||
</div>
|
||||
<div class="dt">
|
||||
|
|
|
@ -130,15 +130,8 @@
|
|||
"description": "Name of the extractor"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"regex",
|
||||
"kval",
|
||||
"json",
|
||||
"xpath"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "type of the extractor",
|
||||
"description": "Type of the extractor"
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"$ref": "#/definitions/extractors.TypeHolder"
|
||||
},
|
||||
"regex": {
|
||||
"items": {
|
||||
|
@ -201,6 +194,17 @@
|
|||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"extractors.TypeHolder": {
|
||||
"enum": [
|
||||
"regex",
|
||||
"kval",
|
||||
"xpath",
|
||||
"json"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "type of the extractor",
|
||||
"description": "Type of the extractor"
|
||||
},
|
||||
"matchers.Matcher": {
|
||||
"required": [
|
||||
"type"
|
||||
|
@ -555,6 +559,16 @@
|
|||
"description": "Description of the headless action"
|
||||
},
|
||||
"action": {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"$ref": "#/definitions/engine.ActionTypeHolder",
|
||||
"title": "action to perform",
|
||||
"description": "Type of actions to perform"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"engine.ActionTypeHolder": {
|
||||
"enum": [
|
||||
"navigate",
|
||||
"script",
|
||||
|
@ -568,7 +582,7 @@
|
|||
"waitload",
|
||||
"getresource",
|
||||
"extract",
|
||||
"setmethod",
|
||||
"set-method",
|
||||
"addheader",
|
||||
"setheader",
|
||||
"deleteheader",
|
||||
|
@ -576,15 +590,12 @@
|
|||
"waitevent",
|
||||
"keyboard",
|
||||
"debug",
|
||||
"sleep"
|
||||
"sleep",
|
||||
"waitvisible"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "action to perform",
|
||||
"description": "Type of actions to perform"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
"description": "Type of actions to perform,enum=navigate,enum=script,enum=click,enum=rightclick,enum=text,enum=screenshot,enum=time,enum=select,enum=files,enum=waitload,enum=getresource,enum=extract,enum=setmethod,enum=addheader,enum=setheader,enum=deleteheader,enum=setbody,enum=waitevent,enum=keyboard,enum=debug,enum=sleep"
|
||||
},
|
||||
"http.HTTPMethodTypeHolder": {
|
||||
"enum": [
|
||||
|
|
|
@ -649,7 +649,7 @@ func init() {
|
|||
|
||||
EXTRACTORSExtractorDoc.Fields[0].AddExample("", "cookie-extractor")
|
||||
EXTRACTORSExtractorDoc.Fields[1].Name = "type"
|
||||
EXTRACTORSExtractorDoc.Fields[1].Type = "string"
|
||||
EXTRACTORSExtractorDoc.Fields[1].Type = "TypeHolder"
|
||||
EXTRACTORSExtractorDoc.Fields[1].Note = ""
|
||||
EXTRACTORSExtractorDoc.Fields[1].Description = "Type is the type of the extractor."
|
||||
EXTRACTORSExtractorDoc.Fields[1].Comments[encoder.LineComment] = "Type is the type of the extractor."
|
||||
|
@ -1098,7 +1098,7 @@ func init() {
|
|||
ENGINEActionDoc.Fields[2].Description = "Description is the optional description of the headless action"
|
||||
ENGINEActionDoc.Fields[2].Comments[encoder.LineComment] = "Description is the optional description of the headless action"
|
||||
ENGINEActionDoc.Fields[3].Name = "action"
|
||||
ENGINEActionDoc.Fields[3].Type = "string"
|
||||
ENGINEActionDoc.Fields[3].Type = "ActionTypeHolder"
|
||||
ENGINEActionDoc.Fields[3].Note = ""
|
||||
ENGINEActionDoc.Fields[3].Description = "Action is the type of the action to perform."
|
||||
ENGINEActionDoc.Fields[3].Comments[encoder.LineComment] = "Action is the type of the action to perform."
|
||||
|
|
Loading…
Reference in New Issue