From 78cd4aa40f72a9d421bcf815f90f167abd3a315f Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 26 Jun 2023 17:28:19 +0000 Subject: [PATCH] Auto Generate Syntax Docs + JSONSchema [Mon Jun 26 17:28:19 UTC 2023] :robot: --- SYNTAX-REFERENCE.md | 13 +++++++++++++ nuclei-jsonschema.json | 5 +++++ v2/pkg/templates/templates_doc.go | 7 ++++++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/SYNTAX-REFERENCE.md b/SYNTAX-REFERENCE.md index 017e16349..def307bae 100755 --- a/SYNTAX-REFERENCE.md +++ b/SYNTAX-REFERENCE.md @@ -2745,6 +2745,19 @@ Fuzzing describes schema to fuzz headless requests
+
+ +cookie-reuse bool + +
+
+ +CookieReuse is an optional setting that enables cookie reuse + +
+ +
+ diff --git a/nuclei-jsonschema.json b/nuclei-jsonschema.json index 5a4d76573..452d4fd85 100644 --- a/nuclei-jsonschema.json +++ b/nuclei-jsonschema.json @@ -727,6 +727,11 @@ "type": "array", "title": "fuzzin rules for http fuzzing", "description": "Fuzzing describes rule schema to fuzz headless requests" + }, + "cookie-reuse": { + "type": "boolean", + "title": "optional cookie reuse enable", + "description": "Optional setting that enables cookie reuse" } }, "additionalProperties": false, diff --git a/v2/pkg/templates/templates_doc.go b/v2/pkg/templates/templates_doc.go index ee857fd9b..25b094b01 100644 --- a/v2/pkg/templates/templates_doc.go +++ b/v2/pkg/templates/templates_doc.go @@ -1212,7 +1212,7 @@ func init() { Value: "Headless response received from client (default)", }, } - HEADLESSRequestDoc.Fields = make([]encoder.Doc, 8) + HEADLESSRequestDoc.Fields = make([]encoder.Doc, 9) HEADLESSRequestDoc.Fields[0].Name = "id" HEADLESSRequestDoc.Fields[0].Type = "string" HEADLESSRequestDoc.Fields[0].Note = "" @@ -1253,6 +1253,11 @@ func init() { HEADLESSRequestDoc.Fields[7].Note = "" HEADLESSRequestDoc.Fields[7].Description = "Fuzzing describes schema to fuzz headless requests" HEADLESSRequestDoc.Fields[7].Comments[encoder.LineComment] = " Fuzzing describes schema to fuzz headless requests" + HEADLESSRequestDoc.Fields[8].Name = "cookie-reuse" + HEADLESSRequestDoc.Fields[8].Type = "bool" + HEADLESSRequestDoc.Fields[8].Note = "" + HEADLESSRequestDoc.Fields[8].Description = "CookieReuse is an optional setting that enables cookie reuse" + HEADLESSRequestDoc.Fields[8].Comments[encoder.LineComment] = "CookieReuse is an optional setting that enables cookie reuse" ENGINEActionDoc.Type = "engine.Action" ENGINEActionDoc.Comments[encoder.LineComment] = " Action is an action taken by the browser to reach a navigation"