Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2018, 14:29
Stingered Stingered is offline
Friend
 
Join Date: Dec 2017
Posts: 256
Rept. Given: 0
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 296
Thanks Rcvd at 179 Times in 89 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:

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
Reply With Quote
  #2  
Old 12-30-2018, 07:15
sendersu sendersu is online now
VIP
 
Join Date: Oct 2010
Posts: 1,066
Rept. Given: 332
Rept. Rcvd 223 Times in 115 Posts
Thanks Given: 234
Thanks Rcvd at 512 Times in 288 Posts
sendersu Reputation: 200-299 sendersu Reputation: 200-299 sendersu Reputation: 200-299
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?
Reply With Quote
The Following User Says Thank You to sendersu For This Useful Post:
niculaita (12-30-2018)
Reply

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 does not hit breakpoint Turkuaz General Discussion 1 08-13-2020 01:24
dnSpy oddities LaptoniC General Discussion 5 05-05-2019 22:34
dnSpy Plugins n00b Developer Section 2 08-29-2015 17:11
RE : Adding mouse functionality LOUZEW General Discussion 7 04-26-2005 01:29


All times are GMT +8. The time now is 16:18.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )