Exetools

Exetools (https://forum.exetools.com/index.php)
-   Community Tools (https://forum.exetools.com/forumdisplay.php?f=47)
-   -   dnSpy - .NET assembly editor, debugger, decompiler (https://forum.exetools.com/showthread.php?t=16912)

-=bb=- 01-25-2016 02:38

This just keeps improving - I prefer using this to Reflector these days.

Maybe it's my lack of experience with .NET projects but I find that patching with Reflector and Reflexil works about 50-70% of the time and I've yet to have an issue with dnSpy perfroming exactly the same operations.

Of course YMMV :)

-=bb=- 02-10-2016 20:51

I seem to be getting an error with the latest version.

On Windows 7, after searching for a string in DLL, memory useage can go as high as 2Gb and when I go to close either the DLL or dnSPy I get the following error :

hxxps://i.imgsafe.org/d691813.png

This is a loop I can't get out of and therefore have to taskkill the process.

I can provide a copy of the DLL I am working with if that helps.

0xd4d 02-10-2016 22:27

You're probably not using the latest build. Try the latest build, that bug should be fixed now. https://ci.appveyor.com/project/0xd4d/dnspy/build/artifacts

-=bb=- 03-02-2016 02:06

New version fixed the error I mentioned before - thank you 0xd4d

Have found an odd one though - not sure if bug (or more likely user error!)

When debugging, if I modify a DLL (for example, I notice Dotfuscator stuff seems to use a lot of While True ... If Case type of arrangements) to change a value (i.e. in an If Case Num loop I change the Num value returned), when stepping through the code, if I put a watch on Num it appears to take the unmodified value.

However when running, not stepping through, it will take the modified value.

Not really sure if that's very clear :/

Unmodified code :

num = 12345
num2 = num

Modified code

num = 54321
num2 = num

When stepping through and watching num and num2, they both take 12345 and will then (in the case example I outlined) branch accordingly.

However when running it in memory (F9) it will branch as is num = 54321

Hope that makes some sense - as I say, probably user error but happy to help contribute with more detailed examples.

0xd4d 03-02-2016 08:13

You should save your changes to a file and re-open the file (eg. Reload all assemblies) since the debugger doesn't support edit-and-continue.

sendersu 03-02-2016 14:51

0xd4d,
here is the interesting error I've got recently while using one of the latest 2.0.0.x beta

http://prntscr.com/a8l7se

thats during copy the variable value (right mouse click - Copy)
whats' most interesting - it does copy the value!
PS (I did debugging over tv on remote PC)

0xd4d 03-03-2016 04:27

I've added protection against those random COM exceptions thrown by the clipboard, use the latest build.

pnta 04-03-2016 09:01

v2.0.0.0 released

Latest build

Quote:

Rewrote dnSpy
Everything's a plugin, see the wiki
Localizable
Tool windows can be placed on any side of the main window; any number of them can be opened at the same time
Project writer has been updated: sln, multiple files, resx, xaml, resources, winforms
Double clicking a search/analyzer result goes to the actual line in the code
Search assemblies can be limited to selected file or files in the same dir as the current file
C# scripting (Roslyn), see the wiki
Optimized the decompiler
Method body editor now supports copying instructions and locals from other methods
More...

It requires .NET Framework 4.6 to run. If you have Windows 7, you must install SP1 or the .NET Framework 4.6 installer will fail
.

niculaita 04-03-2016 20:34

https://ci.appveyor.com/api/buildjobs/gwmvn60wqgb8vb9u/artifacts/dnSpy/bin/dnSpy.zip

atom0s 04-05-2016 04:58

A small feature request; could some configurations be added to allow us to change code output usage of tabs as spaces? I'd rather use 4 spaces instead of tabs so if I use any of the code displayed or saved from dnSpy its using spaces instead of tabs. (Prefer 4 spaces myself, but having it configurable would be nice.)

0xd4d 04-05-2016 13:29

You can use VS to reformat the code. Ctrl+K,Ctrl+D should do the trick for the current file.

Syoma 04-05-2016 16:30

@0xd4d: thank you for the dnSpy. Really the very pro tool I ever see last years.

pnta 04-18-2016 00:13

v2.0.2.0 released

LOUZEW 04-22-2016 19:49

It seem to be a great tool.
have to use it now.

Is there a user guide or anything like that for it ?

Many thank's guys.

FasciHunter 05-07-2016 17:25

i have been using Reflector and Reflexil.
Try the dnspy,I find it powerfull.
It's always good to more than one way to solve problems


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

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