|
|
|
|
|
by grugq
1049 days ago
|
|
The original date for this is actually 2004. Maybe 2003, but I can’t find an archival link. I wrote the code because someone asked how to do this and it was easier to implement it than to explain it in detail. The whole thing is based on what I learned from “Linkers & Loaders,” a great book. (I still have my copy) Later that year I wrote a wrapper around ul_exec() that used an automated interactive session with gdb to load a process, replace it with another binary (delivered over STDIN) and then execute that. This would prevent the binary ever being written to disk. Remote exec was documented in phrack 62, along with the more advanced theory of counter forensics. Interestingly, the techniques I discussed in rexec() are now common APT tradecraft. Using common tools to limit the chance of detection and reduce evidence, aka living off the land, is now standard practice. I explained why about 20 years ago :) http://phrack.org/issues/62/8.html It seems easier to load the whole issue from here:
https://www.exploit-db.com/exploits/42873 |
|