I tried sn already it reports: target.exe does not represent a strongly named assembly
ILDasm doesn't work on the original exe, it reports Protected module -- cannot disassemble.
Maybe I can set a breakpoint and inspect the value? Can you recommend a debugger for this?
Using debugger I watched the result and it is 0x00000005 so I inserted opcode ldc.i4.5.
Using reflector the code is now:
For SmartAss'd targets, I usually use a loader. You can use a loader to modify the method while it's in memory. Just use CFF Explorer to get the Virtual Offset of the opcode that you want to patch, and patch it in memory. If you don't want to make your own loader you can use DUP to create one for you.
Modifying the method in memory bypasses all of those checks that SmartAssembly makes to the methods/exe.
|All times are GMT -4. The time now is 09:46 PM.|
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.