I would like to see if I can edit a value in my program while it is running by directly changing the memory.
My thought process (untested) is to do the following:
- Run the program.
- Open up "System Monitor" app, and "stop" (not end or kill) the program.
- Navigate to
/proc/<ID#>/
chmod
the filemem
to give me read-write access- Edit
mem
with a hex editor - Continue program and see if my changes were reflected.
Is this the right way to go about this?
If not, how would I go about trying to achieve this?