Last active
December 16, 2022 17:29
-
-
Save timb-machine/602d1a4dace4899babc1b6b5345d24b2 to your computer and use it in GitHub Desktop.
Messing with slash-proc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ps -aef | grep 94 | |
root 94 2 0 Jun16 ? 00:00:00 [kworker/6:1H] | |
root 594 2 0 Jun16 ? 00:00:00 [ipv6_addrconf] | |
root 4692 2509 0 01:17 pts/0 00:00:00 grep 94 | |
root 20394 2 0 Oct08 ? 00:00:20 [kworker/u32:2] | |
# mkdir -p spoof/fd; mount -o bind spoof /proc/94; ln -s socket:\[283\] /proc/94/fd/99; ls -la /proc/94/fd | |
total 4 | |
drwxr-xr-x 2 root root 4096 Oct 9 01:16 . | |
dr-xr-xr-x 193 root root 0 Jun 16 17:40 .. | |
lrwxrwxrwx 1 root root 12 Oct 9 01:16 99 -> socket:[283] | |
# ps -aef | grep 94 | |
root 594 2 0 Jun16 ? 00:00:00 [ipv6_addrconf] | |
root 4787 2509 0 01:18 pts/0 00:00:00 grep 94 | |
root 20394 2 0 Oct08 ? 00:00:20 [kworker/u32:2] | |
# umount /proc/94 | |
# ps -aef | grep 94 | |
root 94 2 0 Jun16 ? 00:00:00 [kworker/6:1H] | |
root 594 2 0 Jun16 ? 00:00:00 [ipv6_addrconf] | |
root 4810 2509 0 01:18 pts/0 00:00:00 grep 94 | |
root 20394 2 0 Oct08 ? 00:00:20 [kworker/u32:2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment