mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Add alternative file read and write to less
This commit is contained in:
parent
3702ec4d53
commit
3bc83dcbde
@ -9,11 +9,19 @@ functions:
|
|||||||
v
|
v
|
||||||
file-read:
|
file-read:
|
||||||
- code: less file_to_read
|
- code: less file_to_read
|
||||||
|
- description: This is useful when `less` is used as a pager by another binary to read a different file.
|
||||||
|
code: |
|
||||||
|
less /etc/profile
|
||||||
|
:e file_to_read
|
||||||
file-write:
|
file-write:
|
||||||
- code: |
|
- code: |
|
||||||
echo DATA | less
|
echo DATA | less
|
||||||
sfile_to_write
|
sfile_to_write
|
||||||
q
|
q
|
||||||
|
- description: This invokes the default editor to edit the file. The file must exist.
|
||||||
|
code: |
|
||||||
|
less file_to_write
|
||||||
|
v
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
sudo less /etc/profile
|
sudo less /etc/profile
|
||||||
|
Loading…
Reference in New Issue
Block a user