Christian Lehnert — Linux, Hacking & Faith

tag: #bash

2 posts
1 month ago Recovering Deleted Binaries from /proc

A binary deleted from disk while the process is still running is not actually gone. The kernel keeps the inode alive as long as the process holds it, and /proc/PID/exe is a real readable handle to it. You can copy a running program out of /proc and reconstruct it on disk byte for byte.

#tip-of-the-week #linux #bash #shell