Skip to main content
Here is the list of all supported helper functions can be used in the RAW requests / Network requests.

Deserialization helper functions

Nuclei allows payload generation for a few common gadget from ysoserial. Supported Payload:
  • dns (URLDNS)
  • commons-collections3.1
  • commons-collections4.0
  • jdk7u21
  • jdk8u20
  • groovy1
Supported encodings:
  • base64 (default)
  • gzip-base64
  • gzip
  • hex
  • raw
Deserialization helper function format:
Deserialization helper function example:

JSON helper functions

Nuclei allows manipulate JSON strings in different ways, here is a list of its functions:
  • generate_jwt, to generates a JSON Web Token (JWT) using the claims provided in a JSON string, the signature, and the specified algorithm.
  • json_minify, to minifies a JSON string by removing unnecessary whitespace.
  • json_prettify, to prettifies a JSON string by adding indentation.
Examples generate_jwt To generate a JSON Web Token (JWT), you have to supply the JSON that you want to sign, at least. Here is a list of supported algorithms for generating JWTs with generate_jwt function (case-insensitive):
  • HS256
  • HS384
  • HS512
  • RS256
  • RS384
  • RS512
  • PS256
  • PS384
  • PS512
  • ES256
  • ES384
  • ES512
  • EdDSA
  • NONE
Empty string ("") also means NONE. Format:
Arguments other than json are optional.
Example:
The maxAgeUnix argument is to set the expiration "exp" JWT standard claim, as well as the "iat" claim when you call the function.
json_minify Format:
Example:
minify variable output:
json_prettify Format:
Example:
pretty variable output:
resolve Format:
Here is a list of formats available for dns type:
  • 4 or a
  • 6 or aaaa
  • cname
  • ns
  • txt
  • srv
  • ptr
  • mx
  • soa
  • caa

Examples

For more examples, see the helper function examples