Posts

Showing posts with the label Binary Patching

Security Risks of Modifying Executable Files

Image
1. Executable File Structure We have already examined the structure of executable files through the following topic. How an Executable File Operates Just like document files are organized in a defined format, executable files also have a similar structured format. Among their components, the machine code in the .text section is loaded and executed . 2. Modifying an Executable File This means that by directly modifying the machine code stored in the .text section , the execution behavior of a program can be changed. Using this characteristic, it is possible to alter the execution result without modifying the program source code. 2.1. bin to hex Use the xxd command to convert an executable file into a text-based hex file. $ objdump -d -M intel add Disassembly of section .text: 0000000000401000 <_start>: 40...