Is there any IL editor to change the assembly bytecode?

I found some disadvantages of outdated third-party assemblies that we use on our code, decompile them. I would like to fix them, but since I don't have the source code, I need to change the bytecode directly. The changes are really simple (changing AND for OR and NOPing on some lines).

Is there an editor for this kind of thing? Doing work with a hex editor would be the last option; I would rather have an idea of ​​what instructions I have around the cursor ...

+6
source share
4 answers

I think you're looking for a .NET Reflector with a Reflexil add-on. Take a look at the screenshots, it is quite powerful, and it can modify IL code at runtime. The reflector was usually free, you could find some older version somewhere.

+4
source

I assume that the assemblies are not very named, because otherwise you cannot do anything without a signature key.

If not, it sounds like Ildasm will work for you. You can decompile assemblies, make modifications, and build them again using Ilasm .

Another free option might be Telerik JustDecompile , which "can create a Visual Studio project from a decompiled assembly." “I have not used it, but it looks like it is decompiling the source code and creating a finished project.” This would be super convenient since you don’t even have to work with IL.

+3
source

dnSpy , allows you to change the code of IL and C #. See their screenshots .

+1
source

Try Simple Assembly Explorer, it allows you to edit bytecode and works by default more life Reflexil

https://sites.google.com/site/simpledotnet/simple-assembly-explorer

0
source

Source: https://habr.com/ru/post/914318/


All Articles