4 ms·
Interesting I didn't know that terminal sessions were files. So if I was root on a shared host, I could theoretically hijack and listen to what other people are
by atarian 5y ago
Interesting I didn't know that terminal sessions were files. So if I was root on a shared host, I could theoretically hijack and listen to what other people are doing in their SSH sessions.
- deathanatos 5y agoYes, but if you're root, you could also peer into the terminal emulator's memory space itself, and see that, too. Or into their sshd process, and pull the plaintext out of that. You're root. You might also find the man pages wall(1) and write(1) (That's the terminal utility write, not the syscall write(2).) interesting. (Edit: well, actually, if you're SSH'd into a remote host, your terminal emulator is probably local, so you might not be able to see into its memory unless you're root locally, ofc.)
- RL_Quine 5y agoBy definition as root you can, irrespective of if they are files or not. You have complete access to the memory, networking, and code execution state of the machine.