How to change strings in .NET exe? (Transfer)

I am trying to translate a compiled .NET exe (freeware) which does not seem to decompile properly with standard .NET decompilers. All I want to do is translate some lines into a file and make them work the same, so if you know a way to do this without decompiling the program, I'm fine in telling me which program can do this. I tried IDA Pro (it does not recompile it) and Telrik Just Decompile was out of luck. I also tried using HxD to manually change it, but apparently the lines I'm trying to change are not readable in a hex editor.

+4
source share
1 answer

Thanks for the help. The way I decided how to do this is given below for those who want to know how I did it.

  • Open the VS 2010 command prompt as admin.

  • Open the ildasm.exe file from the command line.

  • In ildasm.exe, open exe and do File-> Dump (by default, everything is fine.)

  • Copy the dump to a shorter directory and replace the material you want to replace through Notepad ++.

  • After everything has been changed, run the following command on the VS command line from the working directory.

    ilasm.exe /EXE /RESOURCE=[RES FILENAME].res .\[SAVED IL FILENAME].il
    
  • Copy it into place and everything should work well.

+6
source

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


All Articles