diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index 2e30c3cb4f..da3a5110cd 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -29,7 +29,7 @@ jobs: fi go generate pkg/templates/templates.go go build -o "cmd/docgen/docgen" cmd/docgen/docgen.go - ./cmd/docgen/docgen ../SYNTAX-REFERENCE.md ../nuclei-jsonschema.json + ./cmd/docgen/docgen SYNTAX-REFERENCE.md nuclei-jsonschema.json git status -s | wc -l | xargs -I {} echo CHANGES={} >> $GITHUB_OUTPUT - name: Commit files diff --git a/SYNTAX-REFERENCE.md b/SYNTAX-REFERENCE.md index c55ea94eed..a090e0295e 100755 --- a/SYNTAX-REFERENCE.md +++ b/SYNTAX-REFERENCE.md @@ -1390,12 +1390,12 @@ Valid values:
-disable-cookie bool +cookie-reuse bool
-DisableCookie is an optional setting that disables cookie reuse for +CookieReuse is an optional setting that enables cookie reuse for all requests defined in raw section.
@@ -1404,6 +1404,19 @@ all requests defined in raw section.
+disable-cookie bool + +
+
+ +DisableCookie is an optional setting that disables cookie reuse + +
+ +
+ +
+ read-all bool
@@ -2115,6 +2128,30 @@ Payloads support both key-values combinations where a list of payloads is provided, or optionally a single file can also be provided as payload which will be read on run-time. + + +
+ +
+ +threads int + +
+
+ +Threads to use when sending iterating over payloads + + + +Examples: + + +```yaml +# Send requests using 10 concurrent threads +threads: 10 +``` + +

@@ -2484,6 +2521,33 @@ Payloads support both key-values combinations where a list of payloads is provided, or optionally a single file can also be provided as payload which will be read on run-time. + + +
+ +
+ +threads int + +
+
+ +Threads specifies number of threads to use sending requests. This enables Connection Pooling. + +Connection: Close attribute must not be used in request while using threads flag, otherwise +pooling will fail and engine will continue to close connections after requests. + + + +Examples: + + +```yaml +# Send requests using 10 concurrent threads +threads: 10 +``` + +

@@ -2881,6 +2945,19 @@ Fuzzing describes schema to fuzz headless requests
+cookie-reuse bool + +
+
+ +CookieReuse is an optional setting that enables cookie reuse + +
+ +
+ +
+ disable-cookie bool
@@ -3227,6 +3304,53 @@ description: |
+
+ +tls_version_enum bool + +
+
+ +TLS Versions Enum - false if not specified +Enumerates supported TLS versions + +
+ +
+ +
+ +tls_cipher_enum bool + +
+
+ +TLS Ciphers Enum - false if not specified +Enumerates supported TLS ciphers + +
+ +
+ +
+ +tls_cipher_types []string + +
+
+ +description: | + TLS Cipher types to enumerate + values: + - "insecure" (default) + - "weak" + - "secure" + - "all" + +
+ +
+ @@ -3649,6 +3773,19 @@ Code contains code to execute for the javascript request.
+timeout int + +
+
+ +Timeout in seconds is optional timeout for each javascript script execution (i.e init, pre-condition, code) + +
+ +
+ +
+ stop-at-first-match bool
diff --git a/nuclei-jsonschema.json b/nuclei-jsonschema.json index e9ab2c3033..c670b49e31 100644 --- a/nuclei-jsonschema.json +++ b/nuclei-jsonschema.json @@ -245,11 +245,6 @@ "type": "boolean", "title": "use case insensitive extract", "description": "use case insensitive extract" - }, - "to": { - "type": "string", - "title": "save extracted values to file", - "description": "save extracted values to file" } }, "additionalProperties": false, @@ -375,6 +370,11 @@ "type": "boolean", "title": "match all values", "description": "match all matcher values ignoring condition" + }, + "internal": { + "type": "boolean", + "title": "hide matcher from output", + "description": "hide matcher from output" } }, "additionalProperties": false, @@ -428,11 +428,6 @@ }, "engine": { "items": { - "enum": [ - "python", - "powershell", - "command" - ], "type": "string" }, "type": "array", @@ -648,6 +643,11 @@ "title": "payloads for the network request", "description": "Payloads contains any payloads for the current request" }, + "threads": { + "type": "integer", + "title": "threads for sending requests", + "description": "Threads specifies number of threads to use sending requests. This enables Connection Pooling" + }, "recursion": { "type": "boolean", "title": "recurse all servers", @@ -821,6 +821,11 @@ "type": "boolean", "title": "optional cookie reuse enable", "description": "Optional setting that enables cookie reuse" + }, + "disable-cookie": { + "type": "boolean", + "title": "optional disable cookie reuse", + "description": "Optional setting that disables cookie reuse" } }, "additionalProperties": false, @@ -1049,6 +1054,11 @@ "title": "optional cookie reuse enable", "description": "Optional setting that enables cookie reuse" }, + "disable-cookie": { + "type": "boolean", + "title": "optional disable cookie reuse", + "description": "Optional setting that disables cookie reuse" + }, "read-all": { "type": "boolean", "title": "force read all body", @@ -1181,6 +1191,11 @@ "title": "code to execute in javascript", "description": "Executes inline javascript code for the request" }, + "timeout": { + "type": "integer", + "title": "timeout for javascript execution", + "description": "Timeout in seconds is optional timeout for entire javascript script execution" + }, "stop-at-first-match": { "type": "boolean", "title": "stop at first match", @@ -1276,6 +1291,11 @@ "title": "payloads for the network request", "description": "Payloads contains any payloads for the current request" }, + "threads": { + "type": "integer", + "title": "threads for sending requests", + "description": "Threads specifies number of threads to use sending requests. This enables Connection Pooling" + }, "inputs": { "items": { "$schema": "http://json-schema.org/draft-04/schema#", @@ -1410,6 +1430,30 @@ "type": "string", "title": "Scan Mode", "description": "Scan Mode - auto if not specified." + }, + "tls_version_enum": { + "type": "boolean", + "title": "Enumerate Versions", + "description": "Enumerate Version - false if not specified" + }, + "tls_cipher_enum": { + "type": "boolean", + "title": "Enumerate Ciphers", + "description": "Enumerate Ciphers - false if not specified" + }, + "tls_cipher_types": { + "items": { + "enum": [ + "weak", + "secure", + "insecure", + "all" + ], + "type": "string" + }, + "type": "array", + "title": "TLS Cipher Types", + "description": "TLS Cipher Types to enumerate" } }, "additionalProperties": false,