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">
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||||
<Exec Command="xcopy "$(SolutionDir)Templates" "$(TargetDir)Data" /E /I /Y" />
|
<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>
|
</Target>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -33,7 +33,7 @@ public static class Deobfuscator
|
|||||||
|
|
||||||
if (!method.Body.Instructions.Any(x =>
|
if (!method.Body.Instructions.Any(x =>
|
||||||
x.OpCode.Code == Code.Callvirt &&
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user