Adding and Removing Decoding Blocks

In order to deepen the parse tree, you need to click on the “image221” icon in the part where you need to expand the parse tree. After clicking on this icon, the parse step creation window appears (see Figure 128).

image222

Figure 128 – “Parse step” window

  1. Decoding method – select the decoding method with which the value will be parsed.

Decoding methods are described in table section 10.

Table 10 - Decoding methods

Decoding method

Description

Decompression deflate

Decompresses data compressed using the deflate compression algorithm. In field 3 (see Figure 128), entering additional parameters is not required

gzip decompression

Decompresses data compressed using the GZIP compression algorithm. In field 3 (see Figure 128), entering additional parameters is not required

Random value label

This parser disables the automatic task of updating\deepening the parse tree for the node value specified in step 2 (see Figure 128). In field 3 (see Figure 128), entering additional parameters is not required

Parsing web forms

Decodes values in keyed tuples separated by ‘&’, with ‘=’ between key and value (content-type: application/x-www-form-urlencoded). In field 3 (see Figure 128), entering additional parameters is not required

Parsing “Content-Type” header values

Parsing the “Content-Type” header. Necessary for the correct operation of the protocol validation module (described in section Setting up protocol validation), namely for checking allowed MIME types. In field 3 (see Figure 128), entering additional parameters is not required

Parsing “Cookie” header values

Parses the cookie array contained in the “Cookie” header into individual elements. Used only to deepen the query parse tree. In field 3 (see Figure 128), entering additional parameters is not required

Parsing Set-Cookie header values

Parses the cookie array contained in the Set-Cookie header into individual elements. Used only to deepen the response parse tree. In field 3 (see Figure 128), entering additional parameters is not required

Parsing by given prefix (prefix)

Parses the values located along the path entered in step 2 (see Figure 128) according to the specified prefix. This decoding method will not work if the parameter is not set in step 3 (see Figure 128).

An example of a parameter in its raw form: “”prefix”:”””, you must enter the prefix value in quotes after the “:” sign
    • Parsing a regular expression (pattern) according to group names (group_names)

    • Splits the value of the field specified in step 2 of the path (see Figure 128), a regular expression (pattern), into a specified number of groups (group_names). The number of groups in “pattern” must match the number of names in “group_names”.

An example of a parameter in its raw form: “group_names”:[“group1”,”group2”],”pattern”:”(\\d+)(\\d+)
    • Parse multipart with automatic separator detection (applies to the tree as a whole)

    • Parses the request body (needs to be used only for POST requests) with automatic delimiter detection. For correct operation, you must not specify the path value in step 2 (see Figure 128). In field 3, no additional parameters are required

    • Parsing multipart with manual delimiter setting

    • Divides the value of the field specified in point 2 of the path (see Figure 128) along the specified boundary (boundary). This decoding method will not work if the parameter is not set in step 3 (see Figure 128). An example of a parameter in its raw form: “”boundary”:”””, in quotation marks after the “:” sign, you must enter the value of the boundary along which the value will be divided

    • URL Parsing

    • Performs the function of a URL decoder. Can be used either without additional parameters in field 3 (see Figure 128) or with the following parameters:

default_scheme – scheme used in the URL;

normalize_path – whether the decoder needs to normalize the path (collapse redundant delimiters, links to a higher level, etc.); decode_path_parameters – whether the decoder needs to decode path parameters.

Default: “”default_scheme”:”b’’”,”normalize_path”:”False”, “decode_path_parameters”:”False””
    • Serialized PHP object

    • Decoding a serialized PHP object. This decoding method will not work if the parameter is not set in step 3 (see Figure 128)

    • AES encrypted token

    • Decryption of a token encrypted using the AES algorithm. When you select this decoding method, additional fields appear:

Key – field for entering the decryption key;

Length nonce – the number of first bytes from the decrypted value that will be used as the decryption initialization vector;

JSON parsing – a checkbox that enables or disables JSON parsing for the decrypted message.

This decoding method will not work if these parameters are not specified.
    • Escaping with slashes (\xaf and \n etc.)

    • Removes slash escaping based on the specified parameters:

u_escape: Unicode escape starting with a backslash, a lowercase “u” and with no more than 4 hexadecimal digits after;

U_escape: Unicode escape starting with a backslash, a capital U, and with no more than 8 hexadecimal digits (note that the resulting code point must be less than MAX_UNICODE);

octal_escape: backslash followed by 1 to 3 octal digits;

hex_escape: A backslash followed by “x” and up to 2 hexadecimal digits.

literal_escape: backslash followed by character;

CSS_escape: A backslash followed by 1 to 6 hexadecimal digits.

Each parameter can only take two values: “true” and “false”.

An example of a parameter in its raw form: “CSS_escape”:”true
    • Base16

    • Performs the function of a Base16 decoder. In field 3 (see Figure 128), entering additional parameters is not required

    • Base32

    • Performs the function of a Base32 decoder. In field 3 (see Figure 128), entering additional parameters is not required

    • Base64

    • Performs the function of a Base64 decoder. In field 3 (see Figure 128), entering additional parameters is not required

    • Base64-Url

    • Performs the function of a Base64-url decoder. In field 3 (see Figure 128), entering additional parameters is not required

    • CBT encrypted cookie

    • Decryption of a token encrypted using the CBT algorithm. When you select this decoding method, additional fields appear:

Key – field for entering the decryption key;

Length nonce – specifies the number of first bytes from the decrypted value that will be used as the decryption initialization vector.

This decoding method will not work if these parameters are not specified.
    • CSV (comma separated values)

    • Divide the value in “CSV” format. Can be used without additional parameters in field 3 (see Figure 128). The parameters can also be used individually:

Delimiter – divides the value by the specified character;

Doublequote – controls the processing of quotes within fields. When set to “True”, two consecutive quotes are interpreted as one when read, and each quote character embedded in the data is written as two quotes when written;

Escapechar – refers to a one-character string used to escape the delimiter when quoting is set to a value; Quotechar – refers to a single character string that will be used to quote values if special characters appear within the field;

Skipinitialspace - Determines how the space after the separator will be interpreted. If “True”, leading spaces will be removed. By default it is “False”.

Default: “”delimiter”:”,”,”doublequote”:”True”, “escapechar”:”None”, “quotechar”:”””, “skipinitialspace”:”False””
    • DSV (custom separated values)

    • Divides the value by two specified characters in field 3 (see Figure 128).

Default: “”delimiters”:”,”,”:””
    • GraphQL

    • GraphQL parser. Parses GraphQL into parameters. In field 3 (see Figure 128), entering additional parameters is not required

    • GSSC encrypted cookie

    • Decryption of a token encrypted using the GSSC algorithm. When you select this decoding method, additional fields appear:

Key – field for entering the decryption key;

Length nonce – specifies the number of first bytes from the decrypted value that will be used as the decryption initialization vector.

This decoding method will not work if these parameters are not specified.
    • GWT RPC

    • GWT RPC parser. Parses GWT RPC. In field 3 (see Figure 128), entering additional parameters is not required

    • HTML

    • HTML parser. Parses HTML into parameters. In field 3 (see Figure 128), entering additional parameters is not required

    • HTML entities

    • HTML entity parser. Parses an HTML entity into parameters. In field 3 (see Figure 128) no additional parameters are required.

    • JSON

    • JSON parser. Parses JSON into parameters. In field 3 (see Figure 128), entering additional parameters is not required

    • JSON RPC

    • JSON RPC parser. Parses JSON RPC into parameters. In field 3 (see Figure 128), entering additional parameters is not required

    • JSONP

    • JSONP parser. Parses JSONP into parameters. In field 3 (see Figure 128), entering additional parameters is not required

    • Transfer mark of a file of a specific format

    • This parser disables the automatic task of updating\deepening the parse tree for the node value specified in step 2 (see Figure 128). In field 3 (see Figure 128), entering additional parameters is not required

    • SOAP

    • SOAP parser. Parses SOAP into parameters. In field 3 (see Figure 128), entering additional parameters is not required

    • Url encoding

    • Performs the function of a URL decoder. In field 3 (see Figure 128), entering additional parameters is not required

    • XML

    • XML parser. Parses XML into parameters. In field 3 (see Figure 128), entering additional parameters is not required

    • XML RPC

    • XML parser. Parses XML into parameters. In field 3 (see Figure 128), entering additional parameters is not required

    • YAML

    • YAML parser. Parses YAML into parameters. In field 3 (see Figure 128), entering additional parameters is not required

  1. The path in the parse tree is a field that specifies the path to the value that needs to be decoded.

  2. Raw parameters – field for entering decoding parameters (not necessary for all decoding methods).

To delete a decoding block, you need to click on the “image223” icon in the upper right corner of the block that you want to delete.

Note

When deleting a block to which another block (child) is attached below, both the selected block and the child will be deleted. When saving the parse tree for the first time (zero revision), you will be offered the option to save the default parse for all applications.