mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add macOS file read for fmt
This commit is contained in:
parent
4c3636900c
commit
304e338c2f
@ -2,15 +2,22 @@
|
|||||||
description: The read file content is not binary-safe.
|
description: The read file content is not binary-safe.
|
||||||
functions:
|
functions:
|
||||||
file-read:
|
file-read:
|
||||||
- code: |
|
- description: This only works for the GNU version of `fmt`.
|
||||||
|
code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
fmt -pNON_EXISTING_PREFIX "$LFILE"
|
fmt -pNON_EXISTING_PREFIX "$LFILE"
|
||||||
|
- description: This corrupts the output by wrapping very long lines at the given width.
|
||||||
|
code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
fmt -999 "$LFILE"
|
||||||
suid:
|
suid:
|
||||||
- code: |
|
- description: This corrupts the output by wrapping very long lines at the given width.
|
||||||
|
code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
./fmt -pNON_EXISTING_PREFIX "$LFILE"
|
./fmt -999 "$LFILE"
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- description: This corrupts the output by wrapping very long lines at the given width.
|
||||||
|
code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
sudo fmt -pNON_EXISTING_PREFIX "$LFILE"
|
sudo fmt -999 "$LFILE"
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user