Change variable name in compiled .exe

December 2016


Change variable name in compiled .exe




Issue


I would like to know how to modify a variable in an already compiled exe. A variable of type string. For example, an exe "patch" another exe for example, changing a variable named: username. I know it's possible, I found a source code in vb. But here I just want an algorithm to be able to do it again, and I do not know how to do it.

Solution


If your program uses a string on the stack, it must be such in the file. He will just have to edit the file and replace the string. A simple sed or tr enables you to do that.

Note


Solved by Char Snipeur

Related :

This document entitled « Change variable name in compiled .exe » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.