We will be at OWASP APPSEC EUROPE 2017 - Belfast! Let’s talk!MORE INFO

Help Center

Get to know more about our API, Code Annotations and Code Transformations

Dot to Bracket Notation

Potency
1 / 3
Resilience
1 / 5
Cost
1 / 5

Tags: dot,bracket,array

Description

Dot to Bracket Notation transforms composite references in dot notation into
square bracket notation.

Example

The following example is a composite reference in dot notation:

1
navigator.plugins.length

After transformation the composite reference is in square bracket notation

1
navigator["plugins"]["length"];

Consider combining this transformation with Duplicate Literals Removal to
replace the string literals with variables (aliases) that will make
the resulting code more resilient to automated de-obfuscator tools.

API Parameters

Example:

1
2
3
4
5
6
7
8
9
10
11
12
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "YYYYYY"
},
"applicationId": "ZZZZZZ",
"params": [
{
"name": "dotToBracketNotation"
}
]
}