r/ExploitDev • u/FewMolasses7496 • Apr 25 '26
Is there anyway I can save the execution of an elf binary that is running on linux?
I am thinking of saving the state of an elf binary just to save me some time when reverse engineering, so if anyone knows any ways to do it on linux please tell me. I also want to restore from the save that I have created. Many thanks.
8
Upvotes
3
u/shiftybyte Apr 25 '26
Something like this?
https://github.com/ecanzonieri/ElfDump
3
u/_supitto Apr 25 '26
If you are in a limited environment. Whay i do is freeze the process. Get the memory map, and dd from mem. The i load each block 1 by on in ghidra, and rebase the whole thing
If you are not, there are ready to use tools depending on your environment
0
u/Firzen_ Apr 25 '26
You should look into ptrace.
It's how debuggers work on Linux.
You can dump out the memory and register states and restore them later for example.