diff --git a/SYNTAX-REFERENCE.md b/SYNTAX-REFERENCE.md
index 2d40b92c2..f78441b5d 100755
--- a/SYNTAX-REFERENCE.md
+++ b/SYNTAX-REFERENCE.md
@@ -1363,6 +1363,32 @@ IterateAll iterates all the values extracted from internal extractors
+
+
+digest-username string
+
+
+
+
+DigestAuthUsername specifies the username for digest authentication
+
+
+
+
+
+
+
+digest-password string
+
+
+
+
+DigestAuthPassword specifies the password for digest authentication
+
+
+
+
+
diff --git a/nuclei-jsonschema.json b/nuclei-jsonschema.json
index fa9b21fa9..66d0fca1d 100755
--- a/nuclei-jsonschema.json
+++ b/nuclei-jsonschema.json
@@ -850,6 +850,16 @@
"type": "boolean",
"title": "iterate all the values",
"description": "Iterates all the values extracted from internal extractors"
+ },
+ "digest-username": {
+ "type": "string",
+ "title": "specifies the username for digest authentication",
+ "description": "Optional parameter which specifies the username for digest auth"
+ },
+ "digest-password": {
+ "type": "string",
+ "title": "specifies the password for digest authentication",
+ "description": "Optional parameter which specifies the password for digest auth"
}
},
"additionalProperties": false,
diff --git a/v2/pkg/templates/templates_doc.go b/v2/pkg/templates/templates_doc.go
index 94aad037e..d9ec2e175 100644
--- a/v2/pkg/templates/templates_doc.go
+++ b/v2/pkg/templates/templates_doc.go
@@ -390,7 +390,7 @@ func init() {
Value: "HTTP response headers in name:value format",
},
}
- HTTPRequestDoc.Fields = make([]encoder.Doc, 29)
+ HTTPRequestDoc.Fields = make([]encoder.Doc, 31)
HTTPRequestDoc.Fields[0].Name = "matchers"
HTTPRequestDoc.Fields[0].Type = "[]matchers.Matcher"
HTTPRequestDoc.Fields[0].Note = ""
@@ -568,6 +568,16 @@ func init() {
HTTPRequestDoc.Fields[28].Note = ""
HTTPRequestDoc.Fields[28].Description = "IterateAll iterates all the values extracted from internal extractors"
HTTPRequestDoc.Fields[28].Comments[encoder.LineComment] = "IterateAll iterates all the values extracted from internal extractors"
+ HTTPRequestDoc.Fields[29].Name = "digest-username"
+ HTTPRequestDoc.Fields[29].Type = "string"
+ HTTPRequestDoc.Fields[29].Note = ""
+ HTTPRequestDoc.Fields[29].Description = "DigestAuthUsername specifies the username for digest authentication"
+ HTTPRequestDoc.Fields[29].Comments[encoder.LineComment] = "DigestAuthUsername specifies the username for digest authentication"
+ HTTPRequestDoc.Fields[30].Name = "digest-password"
+ HTTPRequestDoc.Fields[30].Type = "string"
+ HTTPRequestDoc.Fields[30].Note = ""
+ HTTPRequestDoc.Fields[30].Description = "DigestAuthPassword specifies the password for digest authentication"
+ HTTPRequestDoc.Fields[30].Comments[encoder.LineComment] = "DigestAuthPassword specifies the password for digest authentication"
MATCHERSMatcherDoc.Type = "matchers.Matcher"
MATCHERSMatcherDoc.Comments[encoder.LineComment] = " Matcher is used to match a part in the output from a protocol."