Auto Generate Syntax Docs + JSONSchema [Thu Apr 21 11:19:39 UTC 2022] 🤖

dev
GitHub Action 2022-04-21 11:19:39 +00:00
parent 4573c4e1a4
commit a734b9d6c1
3 changed files with 17 additions and 2 deletions

View File

@ -132,6 +132,7 @@ dns:
regex:
- ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com
- ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com
dsl: []
name: '{{FQDN}}'
type: CNAME
class: inet
@ -164,6 +165,7 @@ file:
- type: regex
regex:
- amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
dsl: []
extensions:
- all
archive: false
@ -2138,6 +2140,8 @@ Enum Values:
- <code>xpath</code>
- <code>json</code>
- <code>dsl</code>
</div>
<hr />
@ -2277,6 +2281,7 @@ extractors:
regex:
- ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com
- ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com
dsl: []
name: '{{FQDN}}'
type: CNAME
class: inet
@ -2596,6 +2601,7 @@ extractors:
- type: regex
regex:
- amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
dsl: []
extensions:
- all
archive: false

View File

@ -132,7 +132,8 @@
},
"extractors.Extractor": {
"required": [
"type"
"type",
"DSL"
],
"properties": {
"name": {
@ -186,6 +187,12 @@
"title": "optional attribute to extract from xpath",
"description": "Optional attribute to extract from response XPath"
},
"DSL": {
"items": {
"type": "string"
},
"type": "array"
},
"part": {
"type": "string",
"title": "part of response to extract data from",
@ -210,7 +217,8 @@
"regex",
"kval",
"xpath",
"json"
"json",
"dsl"
],
"type": "string",
"title": "type of the extractor",

View File

@ -891,6 +891,7 @@ func init() {
"kval",
"xpath",
"json",
"dsl",
}
GENERATORSAttackTypeHolderDoc.Type = "generators.AttackTypeHolder"