-
-
Notifications
You must be signed in to change notification settings - Fork 380
Control Flow Protection
ID: ctrl flow
Preset: Normal
Availability:
This protection mangles the code in the methods. While it is possible to decompile the mangled code, the result won't make any sense to a human reading it.
-
type
: This parameter define how ConfuserEx mangles the method code. Supported values are:-
switch
: ConfuserEx would insert a switch-base state machine to reorder the codes. (default) -
jump
: ConfuserEx would inserts jumps in methods to produce traditional spaghetti code. (Produces unverifiable modules)
-
-
predicate
: This parameter define how ConfuserEx store the state variable iftype
is set toswitch
. Supported values are:-
normal
: ConfuserEx would use the state variable directly. (default) -
expression
: ConfuserEx would encode the state variable using dynamically generated expressions. -
x86
: ConfuserEx would encode the state variable using dynamically generated native x86 expressions. This mode will disable the "AnyCPU" mode of an assembly.
(Produces unverifiable modules)
-
-
intensity
: This parameter is a integer value from 0 to 100, indicating how large is each split code block. Default is 60. -
depth
: This parameter define how deep is the generated expression ifpredicate
is set toexpression
orx86
. Default is 4. -
junk
: This parameter is a boolean value indicates whether junk codes would be inserted. Default isfalse
. (Produces unverifiable modules)
<protection id="ctrl flow">
<argument name="type" value="switch" />
<argument name="predicate" value="expression" />
<argument name="intensity" value="70" />
<argument name="depth" value="6" />
<argument name="junk" value="true" />
</protection>