From 42997519e18657c6d08196ee16f80ff18789cb4f Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 3 Jun 2018 10:01:46 +0200 Subject: [PATCH] Fix sort file-read to avoid actually sorting lines Thanks to @dubek. --- _gtfobins/sort.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/_gtfobins/sort.md b/_gtfobins/sort.md index fc34176..528d912 100644 --- a/_gtfobins/sort.md +++ b/_gtfobins/sort.md @@ -1,17 +1,15 @@ --- -description: | - The read file content is corrupted by being sorted. functions: sudo-enabled: - code: | LFILE=file_to_read - sudo sort "$LFILE" + sudo sort -m "$LFILE" suid-enabled: - code: | LFILE=file_to_read - ./sort "$LFILE" + ./sort -m "$LFILE" file-read: - code: | LFILE=file_to_read - sort "$LFILE" + sort -m "$LFILE" ---