修复未混淆long字段的bug
parent
f23ea3a46c
commit
49520abcae
|
@ -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:
|
||||||
|
|
|
@ -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 ?
|
||||||
|
|
Loading…
Reference in New Issue