Fixed invalid fields in request (#2788)

dev
Ice3man 2022-11-01 16:10:41 +05:30 committed by GitHub
parent 846f4f6d9e
commit cd0517c887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 102 deletions

View File

@ -101,8 +101,6 @@ 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
@ -135,8 +133,6 @@ 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
@ -170,8 +166,6 @@ 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
@ -209,8 +203,6 @@ network:
- type: word - type: word
words: words:
- zookeeper.version - zookeeper.version
templateid: ""
excludematchers: null
``` ```
@ -802,8 +794,6 @@ 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
@ -2322,8 +2312,6 @@ 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
@ -2644,8 +2632,6 @@ 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
@ -2849,8 +2835,6 @@ matchers:
- type: word - type: word
words: words:
- zookeeper.version - zookeeper.version
templateid: ""
excludematchers: null
``` ```
Part Definitions: Part Definitions:

84
nuclei-jsonschema.json Executable file → Normal file
View File

@ -352,11 +352,6 @@
"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,
@ -380,10 +375,6 @@
"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": {
@ -410,12 +401,6 @@
"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",
@ -479,8 +464,6 @@
}, },
"file.Request": { "file.Request": {
"required": [ "required": [
"TemplateID",
"ExcludeMatchers",
"Archive", "Archive",
"MimeType" "MimeType"
], ],
@ -510,12 +493,6 @@
"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"
@ -558,10 +535,6 @@
"type": "object" "type": "object"
}, },
"headless.Request": { "headless.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
@ -627,12 +600,6 @@
"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,
@ -721,10 +688,6 @@
"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": {
@ -753,13 +716,6 @@
"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"
@ -972,10 +928,6 @@
"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",
@ -1048,22 +1000,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,
"type": "object" "type": "object"
}, },
"ssl.Request": { "ssl.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"matchers": { "matchers": {
"items": { "items": {
@ -1090,12 +1032,6 @@
"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",
@ -1152,10 +1088,6 @@
"type": "object" "type": "object"
}, },
"websocket.Request": { "websocket.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"matchers": { "matchers": {
"items": { "items": {
@ -1182,12 +1114,6 @@
"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",
@ -1232,10 +1158,6 @@
"type": "object" "type": "object"
}, },
"whois.Request": { "whois.Request": {
"required": [
"TemplateID",
"ExcludeMatchers"
],
"properties": { "properties": {
"matchers": { "matchers": {
"items": { "items": {
@ -1262,12 +1184,6 @@
"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",

View File

@ -37,9 +37,9 @@ type Operators struct {
matchersCondition matchers.ConditionType matchersCondition matchers.ConditionType
// TemplateID is the ID of the template for matcher // TemplateID is the ID of the template for matcher
TemplateID string TemplateID string `json:"-" yaml:"-" jsonschema:"-"`
// ExcludeMatchers is a list of excludeMatchers items // ExcludeMatchers is a list of excludeMatchers items
ExcludeMatchers *excludematchers.ExcludeMatchers ExcludeMatchers *excludematchers.ExcludeMatchers `json:"-" yaml:"-" jsonschema:"-"`
} }
// Compile compiles the operators as well as their corresponding matchers and extractors // Compile compiles the operators as well as their corresponding matchers and extractors