#1
|
|||
|
|||
dnSpy oddities
Hi,
I am trying to reverse a net app for fun and tried to use dnSpy for the job. I found the methods in dll and edit the method and saved the file. When I run with dnSpy debugger, it works. If I run it directly my patch doesn't have any effect. I figured out it is loading files from C:\Windows\assembly\NativeImagesxx. I tried to ngen.exe but now apps don't open at all. What am I doing wrong? Sorry it's been a long time I have touched those tools I am kind a lost lol |
The Following User Says Thank You to LaptoniC For This Useful Post: | ||
Indigo (07-19-2019) |
#2
|
|||
|
|||
It's depend how you patch the file, it can be also the location of the file. I remember I was Patching one file, everything was fine, show registered in the debugger, I closed open without dnspy, not working, again in dnspy and then I saw, dnspy loaded always a new dll. Try to patch the file in dnspy, if it is not work, find the location of the bytes and patch it with a hexeditor.
|
The Following User Says Thank You to the_beginner For This Useful Post: | ||
Indigo (07-19-2019) |
#3
|
|||
|
|||
you will have to understand how GAC and ngen works, you'll have to probe about signatures in .net (signed assembly).
as far as i know dnSpy is working perfectly. |
The Following User Says Thank You to ymg2006 For This Useful Post: | ||
Indigo (07-19-2019) |
#4
|
|||
|
|||
@LaptoniC
Start by uninstalling the file from the GAC ... Code:
ngen uninstall AssemblyName Regards, Tony
__________________
Want to learn unpacking ... but I'm too stupid |
The Following User Says Thank You to tonyweb For This Useful Post: | ||
Indigo (07-19-2019) |
#6
|
|||
|
|||
When I play around with that kind of things, I locate the corresponding path and files inside the win dir with this small regfile content:
Code:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion] "DisableCacheViewer"=dword:00000001 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dnspy does not hit breakpoint | Turkuaz | General Discussion | 1 | 08-13-2020 01:24 |
[dnSpy Extension] TraceSpy | phono | Community Tools | 7 | 12-06-2016 02:11 |
dnSpy Plugins | n00b | Developer Section | 2 | 08-29-2015 17:11 |