Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Need an assist with adding locals using DNspy (https://forum.exetools.com/showthread.php?t=19058)

Stingered 12-28-2018 14:29

Need an assist with adding locals using DNspy
 
So I came across a version of .NET Reflector that I believe was manually edited (using DNspy or similar) to remove any and all serial/internet verification checks/etc, thus making the EXE completely portable. I'm trying to backtrack how this was done using an unedited but identical version of the Reflector EXE. I'm 95% there, but I'm stuck on the last bit.

I'm using DNspy, but I cannot figure out how these locals were added:

Code:

Reflector.Application.InternalApplicationManager.<>c__DisplayClass0_0__2
Reflector.Application.InternalApplicationManager.<>c__DisplayClass0_1__1

FYI: The method is, WindowManagerLoadPostProcessUiActions()

They are showing up under the LOCALS tab of the DNspy dialog that allows you to edit the IL instructions. It's damn frustration because it's the final piece to the puzzle and I can't figure out how to implement these locals into the EXE.

A pointer in the right direction would be very helpful.

-thx

sendersu 12-30-2018 07:15

tokens with names like
<>c__DisplayClassXXXXX
are for sure generate by the C# compiler
Good decompiler transofrts that low-level stuff into high level C# constuctions (eg as ILSpy does)

what is the reason to add vars (by hands!?!) that are like internal compiler generated ones?


All times are GMT +8. The time now is 14:42.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX