Auto Generate Syntax Docs + JSONSchema [Fri Jun 24 17:41:08 UTC 2022] 🤖

dev
GitHub Action 2022-06-24 17:41:08 +00:00
parent 7875b06fc8
commit 73ddae3478
2 changed files with 100 additions and 0 deletions

View File

@ -101,6 +101,8 @@ requests:
status: status:
- 200 - 200
matchers-condition: and matchers-condition: and
templateid: ""
excludematchers: null
path: path:
- '{{BaseURL}}/.git/config' - '{{BaseURL}}/.git/config'
method: GET method: GET
@ -133,6 +135,8 @@ dns:
- ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com - ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com
- ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com - ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com
dsl: [] dsl: []
templateid: ""
excludematchers: null
name: '{{FQDN}}' name: '{{FQDN}}'
type: CNAME type: CNAME
class: inet class: inet
@ -166,6 +170,8 @@ file:
regex: regex:
- amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} - amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
dsl: [] dsl: []
templateid: ""
excludematchers: null
extensions: extensions:
- all - all
archive: false archive: false
@ -203,6 +209,8 @@ network:
- type: word - type: word
words: words:
- zookeeper.version - zookeeper.version
templateid: ""
excludematchers: null
``` ```
@ -792,6 +800,8 @@ matchers:
status: status:
- 200 - 200
matchers-condition: and matchers-condition: and
templateid: ""
excludematchers: null
path: path:
- '{{BaseURL}}/.git/config' - '{{BaseURL}}/.git/config'
method: GET method: GET
@ -2295,6 +2305,8 @@ extractors:
- ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com - ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com
- ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com - ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com
dsl: [] dsl: []
templateid: ""
excludematchers: null
name: '{{FQDN}}' name: '{{FQDN}}'
type: CNAME type: CNAME
class: inet class: inet
@ -2615,6 +2627,8 @@ extractors:
regex: regex:
- amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} - amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
dsl: [] dsl: []
templateid: ""
excludematchers: null
extensions: extensions:
- all - all
archive: false archive: false
@ -2818,6 +2832,8 @@ matchers:
- type: word - type: word
words: words:
- zookeeper.version - zookeeper.version
templateid: ""
excludematchers: null
``` ```
Part Definitions: Part Definitions:

View File

@ -352,6 +352,11 @@
"title": "type of the attack", "title": "type of the attack",
"description": "Type of the attack" "description": "Type of the attack"
}, },
"excludematchers.ExcludeMatchers": {
"properties": {},
"additionalProperties": false,
"type": "object"
},
"variables.Variable": { "variables.Variable": {
"properties": {}, "properties": {},
"additionalProperties": false, "additionalProperties": false,
@ -375,6 +380,10 @@
"description": "Type is the type of DNS request to make" "description": "Type is the type of DNS request to make"
}, },
"dns.Request": { "dns.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"matchers": { "matchers": {
"items": { "items": {
@ -401,6 +410,12 @@
"title": "condition between the matchers", "title": "condition between the matchers",
"description": "Conditions between the matchers" "description": "Conditions between the matchers"
}, },
"TemplateID": {
"type": "string"
},
"ExcludeMatchers": {
"$ref": "#/definitions/excludematchers.ExcludeMatchers"
},
"id": { "id": {
"type": "string", "type": "string",
"title": "id of the dns request", "title": "id of the dns request",
@ -464,6 +479,8 @@
}, },
"file.Request": { "file.Request": {
"required": [ "required": [
"TemplateID",
"ExcludeMatchers",
"Archive", "Archive",
"MimeType" "MimeType"
], ],
@ -493,6 +510,12 @@
"title": "condition between the matchers", "title": "condition between the matchers",
"description": "Conditions between the matchers" "description": "Conditions between the matchers"
}, },
"TemplateID": {
"type": "string"
},
"ExcludeMatchers": {
"$ref": "#/definitions/excludematchers.ExcludeMatchers"
},
"extensions": { "extensions": {
"items": { "items": {
"type": "string" "type": "string"
@ -535,6 +558,10 @@
"type": "object" "type": "object"
}, },
"headless.Request": { "headless.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
@ -600,6 +627,12 @@
"type": "string", "type": "string",
"title": "condition between the matchers", "title": "condition between the matchers",
"description": "Conditions between the matchers" "description": "Conditions between the matchers"
},
"TemplateID": {
"type": "string"
},
"ExcludeMatchers": {
"$ref": "#/definitions/excludematchers.ExcludeMatchers"
} }
}, },
"additionalProperties": false, "additionalProperties": false,
@ -688,6 +721,10 @@
"description": "Method is the HTTP Request Method" "description": "Method is the HTTP Request Method"
}, },
"http.Request": { "http.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"matchers": { "matchers": {
"items": { "items": {
@ -716,6 +753,13 @@
"title": "condition between the matchers", "title": "condition between the matchers",
"description": "Conditions between the matchers" "description": "Conditions between the matchers"
}, },
"TemplateID": {
"type": "string"
},
"ExcludeMatchers": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/excludematchers.ExcludeMatchers"
},
"path": { "path": {
"items": { "items": {
"type": "string" "type": "string"
@ -923,6 +967,10 @@
"description": "description=Type of input specified in data field" "description": "description=Type of input specified in data field"
}, },
"network.Request": { "network.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
@ -995,12 +1043,22 @@
"type": "string", "type": "string",
"title": "condition between the matchers", "title": "condition between the matchers",
"description": "Conditions between the matchers" "description": "Conditions between the matchers"
},
"TemplateID": {
"type": "string"
},
"ExcludeMatchers": {
"$ref": "#/definitions/excludematchers.ExcludeMatchers"
} }
}, },
"additionalProperties": false, "additionalProperties": false,
"type": "object" "type": "object"
}, },
"ssl.Request": { "ssl.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"matchers": { "matchers": {
"items": { "items": {
@ -1027,6 +1085,12 @@
"title": "condition between the matchers", "title": "condition between the matchers",
"description": "Conditions between the matchers" "description": "Conditions between the matchers"
}, },
"TemplateID": {
"type": "string"
},
"ExcludeMatchers": {
"$ref": "#/definitions/excludematchers.ExcludeMatchers"
},
"address": { "address": {
"type": "string", "type": "string",
"title": "address for the ssl request", "title": "address for the ssl request",
@ -1083,6 +1147,10 @@
"type": "object" "type": "object"
}, },
"websocket.Request": { "websocket.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"matchers": { "matchers": {
"items": { "items": {
@ -1109,6 +1177,12 @@
"title": "condition between the matchers", "title": "condition between the matchers",
"description": "Conditions between the matchers" "description": "Conditions between the matchers"
}, },
"TemplateID": {
"type": "string"
},
"ExcludeMatchers": {
"$ref": "#/definitions/excludematchers.ExcludeMatchers"
},
"address": { "address": {
"type": "string", "type": "string",
"title": "address for the websocket request", "title": "address for the websocket request",
@ -1153,6 +1227,10 @@
"type": "object" "type": "object"
}, },
"whois.Request": { "whois.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"matchers": { "matchers": {
"items": { "items": {
@ -1179,6 +1257,12 @@
"title": "condition between the matchers", "title": "condition between the matchers",
"description": "Conditions between the matchers" "description": "Conditions between the matchers"
}, },
"TemplateID": {
"type": "string"
},
"ExcludeMatchers": {
"$ref": "#/definitions/excludematchers.ExcludeMatchers"
},
"query": { "query": {
"type": "string", "type": "string",
"title": "query for the WHOIS request", "title": "query for the WHOIS request",