From dfb73f222fa0c4b65574d387e5a07ff2cc44093d Mon Sep 17 00:00:00 2001 From: de4dot Date: Wed, 26 Oct 2011 22:24:31 +0200 Subject: [PATCH] Add options to disable decryption of methods and bools --- .../dotNET_Reactor/Deobfuscator.cs | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs b/de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs index fd32bc11..feb769db 100644 --- a/de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs +++ b/de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs @@ -24,8 +24,13 @@ using de4dot.blocks; namespace de4dot.deobfuscators.dotNET_Reactor { class DeobfuscatorInfo : DeobfuscatorInfoBase { + BoolOption decryptMethods; + BoolOption decryptBools; + public DeobfuscatorInfo() : base("dr") { + decryptMethods = new BoolOption(null, makeArgName("methods"), "Decrypt methods", true); + decryptBools = new BoolOption(null, makeArgName("bools"), "Decrypt booleans", true); } internal static string ObfuscatorType { @@ -39,11 +44,15 @@ namespace de4dot.deobfuscators.dotNET_Reactor { public override IDeobfuscator createDeobfuscator() { return new Deobfuscator(new Deobfuscator.Options { ValidNameRegex = validNameRegex.get(), + DecryptMethods = decryptMethods.get(), + DecryptBools = decryptBools.get(), }); } protected override IEnumerable