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

Boolean To Anything

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

Tags: boolean,anything,strings,arrays,booleans,numbers

Description

A boolean is a data type that can have one of two values: true or false.
The goal of this transformation is to transform boolean literals into
expressions that return the same boolean value but are harder to understand.
This will reduce code readability.

Example

The following example is an expression with two boolean literals:

1
true || false;

The transformation produces random results so the following example is a possible
output:

1
!!1 || !{}

Consider combining this transformation with Duplicate Literals Removal to
replace literals like 1 and {} 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": "booleanToAnything"
}
]
}