diff --git a/SYNTAX-REFERENCE.md b/SYNTAX-REFERENCE.md
index a3fffe351..3d16bda71 100755
--- a/SYNTAX-REFERENCE.md
+++ b/SYNTAX-REFERENCE.md
@@ -1554,6 +1554,26 @@ Valid values:
+
+
+case-insensitive bool
+
+
+
+
+CaseInsensitive enables case-insensitive matches. Default is false.
+
+
+Valid values:
+
+
+ - false
+
+ - true
+
+
+
+
@@ -1833,6 +1853,26 @@ in the next request for some protocols (like HTTP).
+
+
+case-insensitive bool
+
+
+
+
+CaseInsensitive enables case-insensitive extractions. Default is false.
+
+
+Valid values:
+
+
+ - false
+
+ - true
+
+
+
+
diff --git a/nuclei-jsonschema.json b/nuclei-jsonschema.json
index 1db207d77..4f22c3863 100755
--- a/nuclei-jsonschema.json
+++ b/nuclei-jsonschema.json
@@ -191,6 +191,11 @@
"type": "boolean",
"title": "mark extracted value for internal variable use",
"description": "Internal when set to true will allow using the value extracted in the next request for some protocols"
+ },
+ "case-insensitive": {
+ "type": "boolean",
+ "title": "use case insensitive extract",
+ "description": "use case insensitive extract"
}
},
"additionalProperties": false,
@@ -293,6 +298,11 @@
"type": "string",
"title": "encoding for word field",
"description": "Optional encoding for the word fields"
+ },
+ "case-insensitive": {
+ "type": "boolean",
+ "title": "use case insensitive match",
+ "description": "use case insensitive match"
}
},
"additionalProperties": false,
diff --git a/v2/pkg/templates/templates_doc.go b/v2/pkg/templates/templates_doc.go
index d6042dfbd..ca416b3b8 100644
--- a/v2/pkg/templates/templates_doc.go
+++ b/v2/pkg/templates/templates_doc.go
@@ -473,7 +473,7 @@ func init() {
FieldName: "matchers",
},
}
- MATCHERSMatcherDoc.Fields = make([]encoder.Doc, 12)
+ MATCHERSMatcherDoc.Fields = make([]encoder.Doc, 13)
MATCHERSMatcherDoc.Fields[0].Name = "type"
MATCHERSMatcherDoc.Fields[0].Type = "string"
MATCHERSMatcherDoc.Fields[0].Note = ""
@@ -575,6 +575,15 @@ func init() {
MATCHERSMatcherDoc.Fields[11].Values = []string{
"hex",
}
+ MATCHERSMatcherDoc.Fields[12].Name = "case-insensitive"
+ MATCHERSMatcherDoc.Fields[12].Type = "bool"
+ MATCHERSMatcherDoc.Fields[12].Note = ""
+ MATCHERSMatcherDoc.Fields[12].Description = "CaseInsensitive enables case-insensitive matches. Default is false."
+ MATCHERSMatcherDoc.Fields[12].Comments[encoder.LineComment] = "CaseInsensitive enables case-insensitive matches. Default is false."
+ MATCHERSMatcherDoc.Fields[12].Values = []string{
+ "false",
+ "true",
+ }
EXTRACTORSExtractorDoc.Type = "extractors.Extractor"
EXTRACTORSExtractorDoc.Comments[encoder.LineComment] = " Extractor is used to extract part of response using a regex."
@@ -601,7 +610,7 @@ func init() {
FieldName: "extractors",
},
}
- EXTRACTORSExtractorDoc.Fields = make([]encoder.Doc, 10)
+ EXTRACTORSExtractorDoc.Fields = make([]encoder.Doc, 11)
EXTRACTORSExtractorDoc.Fields[0].Name = "name"
EXTRACTORSExtractorDoc.Fields[0].Type = "string"
EXTRACTORSExtractorDoc.Fields[0].Note = ""
@@ -678,6 +687,15 @@ func init() {
EXTRACTORSExtractorDoc.Fields[9].Note = ""
EXTRACTORSExtractorDoc.Fields[9].Description = "Internal, when set to true will allow using the value extracted\nin the next request for some protocols (like HTTP)."
EXTRACTORSExtractorDoc.Fields[9].Comments[encoder.LineComment] = "Internal, when set to true will allow using the value extracted"
+ EXTRACTORSExtractorDoc.Fields[10].Name = "case-insensitive"
+ EXTRACTORSExtractorDoc.Fields[10].Type = "bool"
+ EXTRACTORSExtractorDoc.Fields[10].Note = ""
+ EXTRACTORSExtractorDoc.Fields[10].Description = "CaseInsensitive enables case-insensitive extractions. Default is false."
+ EXTRACTORSExtractorDoc.Fields[10].Comments[encoder.LineComment] = "CaseInsensitive enables case-insensitive extractions. Default is false."
+ EXTRACTORSExtractorDoc.Fields[10].Values = []string{
+ "false",
+ "true",
+ }
DNSRequestDoc.Type = "dns.Request"
DNSRequestDoc.Comments[encoder.LineComment] = " Request contains a DNS protocol request to be made from a template"