Fix DeObfuscate command InvalidCastException + put de4dot in sub dir of data.
This commit is contained in:
parent
b6e7280929
commit
f7543672fc
@ -10,7 +10,7 @@
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="xcopy "$(SolutionDir)Templates" "$(TargetDir)Data" /E /I /Y" />
|
||||
<Exec Command="xcopy "$(SolutionDir)de4dot" "$(TargetDir)Data" /E /I /Y" />
|
||||
<Exec Command="xcopy "$(SolutionDir)de4dot" "$(TargetDir)Data/de4dot" /E /I /Y" />
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -33,7 +33,7 @@ public static class Deobfuscator
|
||||
|
||||
if (!method.Body.Instructions.Any(x =>
|
||||
x.OpCode.Code == Code.Callvirt &&
|
||||
((MethodDef)x.Operand).FullName == "System.Object System.AppDomain::GetData(System.String)"))
|
||||
((IMethodDefOrRef)x.Operand).FullName == "System.Object System.AppDomain::GetData(System.String)"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user