修复未混淆long字段的bug

backup
walon 2025-04-23 10:49:18 +08:00
parent f23ea3a46c
commit 49520abcae
2 changed files with 4 additions and 3 deletions

View File

@ -63,6 +63,7 @@ namespace Obfuz.Virtualization
switch (inst.OpCode.OperandType) switch (inst.OpCode.OperandType)
{ {
case OperandType.InlineI: case OperandType.InlineI:
case OperandType.InlineI8:
case OperandType.ShortInlineI: case OperandType.ShortInlineI:
case OperandType.ShortInlineR: case OperandType.ShortInlineR:
case OperandType.InlineR: case OperandType.InlineR:

View File

@ -16,8 +16,8 @@ namespace Obfuz.Virtualization
_random = random; _random = random;
var int32Funcs = new List<IFunction>() var int32Funcs = new List<IFunction>()
{ {
//new IntAdd(), new IntAdd(),
//new IntXor(), new IntXor(),
new IntRotateShift(), new IntRotateShift(),
//new ConstFromFieldRvaDataCreator(), //new ConstFromFieldRvaDataCreator(),
//new ConstDataCreator(), //new ConstDataCreator(),
@ -32,7 +32,7 @@ namespace Obfuz.Virtualization
{ {
throw new System.Exception($"No functions available for type {type}"); throw new System.Exception($"No functions available for type {type}");
} }
if (options.depth >= 3) if (options.depth >= 4)
{ {
//return new ConstDataNode() { Type = type, Value = value }; //return new ConstDataNode() { Type = type, Value = value };
return _random.NextInt(100) < 50 ? return _random.NextInt(100) < 50 ?