JDecompiler
![JDecompiler JDecompiler](https://raw.githubusercontent.com/java-decompiler/jd-eclipse/master/src/website/img/jd-eclipse.png)
Well, we download it and open it again with DnSpy: net files that are used by the application You can also obtain all the dependencies or own.
JDECOMPILER CODE
Here will be the file that contains the code of our web application: We must enter inspection mode Ctrl + Shift + C and go to section Network, later reload the page with Ctrl + F5. NET libraries to display the application, it makes a call to obtain them. Now we have created a sample web application with Blazor, this is the application code in visual studio:īasically it is an application that shows the weather and we have added Dotnetsafer in the middle so that we can see it later in the decompiled application, here is the web application:įirst we will use our browser (it does not matter which one), since when loading the. NET is the same, it does not matter if you use c#, vb, ASP, Xamarin, Blazor, everything works in the same way, let's see then with a Blazor application.ĭecompiling a web application with Blazor Now we are going to see other types of applications, because compilation in. Ok, these are simple and unimportant examples, I leave to your imagination □ everything that could be done with these simple tools. We will select the name of the file, its path and we will mark the following options:Īnd we will have our modified application: Now to save our modified application, we will give: We can also do it using IL code, but if we do not know it it will be much more complex. We can modify and re-compile the application without any problem: This is a function that can be very useful at times, but it can also be dangerous ⚡. This will be useful to understand how it works or to obtain some values in memory.įor example, let's put a breakpoint before doing a subtraction: Once our application is decompiled, we can navigate through the source code as if it were our own project: Once loaded, the original source code will be shown and we can work on it, we can analyze it, modify it, debug it, etc. To do this, all we have to do is drag it to DnSpy: NET Core the ".exe" file will be the executable, but it will be in charge of executing the ".dll" that contains the code of our application. NET Core application, we will obtain the compiled files, in the case of. There are several tools and each one is good for something in particular, but DnSpy is one of the best for decompiling and debugging. NET Core applicationįor this example we will use DnSpy. I'd say it's easier than compiling, but let's see how it's done.ĭecompiling a. exe., and with a tool (decompiler) you get the original source code. Well, de-compilation is the opposite, you have an executable file. surely you forgot a semicolon or something like that □) you will also have 103 warnings ⚠, but if you don't open your eyes, you don't see them □.
![JDecompiler JDecompiler](https://mkyong.com/wp-content/uploads/2008/07/eclipse-java-decompiler-4-file-associations.png)
We do this article for a very simple reason, in our offices (a co-working space) there are quite a few companies that develop in.
![JDecompiler JDecompiler](https://www.pnfsoftware.com/jeb/manual/img/jeb-decomp-unit.png)
Hello to all developers □, I am Juan and I am part of the dotnetsafer team.