I want to add additional functionality to / bin / ls.
So I started it on gdb and added a breakpoint at the beginning.
Now the question is: how can I change the code of a running program in memory? I see the assembly code, but I can not change. How can i do this?
On Windows, I can easily do this with olldbg, for example. What about Linux?
(I know that by doing this I would only change the process code in memory. Therefore, I can write the memory to a file and then save my changes to the binary).
Thanks.
source share