Go Back   Exetools > General > General Discussion


Thread Tools Display Modes
Old 12-28-2018, 14:29
Stingered Stingered is offline
Join Date: Dec 2017
Posts: 114
Rept. Given: 0
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 145
Thanks Rcvd at 73 Times in 38 Posts
Stingered Reputation: 2
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:

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.

Reply With Quote
Old 12-30-2018, 07:15
sendersu sendersu is offline
Join Date: Oct 2010
Posts: 828
Rept. Given: 324
Rept. Rcvd 216 Times in 110 Posts
Thanks Given: 167
Thanks Rcvd at 342 Times in 192 Posts
sendersu Reputation: 200-299 sendersu Reputation: 200-299 sendersu Reputation: 200-299
tokens with names like
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?
Reply With Quote
The Following User Says Thank You to sendersu For This Useful Post:
niculaita (12-30-2018)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dnSpy oddities LaptoniC General Discussion 5 05-05-2019 22:34
[DnSpy] - Find out running threads tusk General Discussion 3 04-17-2017 03:06
[dnSpy Extension] TraceSpy phono Community Tools 7 12-06-2016 02:11
dnSpy Plugins n00b Developer Section 2 08-29-2015 17:11

All times are GMT +8. The time now is 01:56.

Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX