From 401486648a0ef9cd67c495c3fc85ae51830b8245 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Wed, 30 May 2018 19:15:29 +0100 Subject: [PATCH] Add sort, ul, uniq --- _gtfobins/sort.md | 16 ++++++++++++++++ _gtfobins/ul.md | 16 ++++++++++++++++ _gtfobins/uniq.md | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 _gtfobins/sort.md create mode 100644 _gtfobins/ul.md create mode 100644 _gtfobins/uniq.md diff --git a/_gtfobins/sort.md b/_gtfobins/sort.md new file mode 100644 index 0000000..26fbc0d --- /dev/null +++ b/_gtfobins/sort.md @@ -0,0 +1,16 @@ +--- +description: The read file content is corrupted by being sorted. +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo sort "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_read + ./sort "$LFILE" + file-read: + - code: | + LFILE=file_to_read + sort "$LFILE" +--- diff --git a/_gtfobins/ul.md b/_gtfobins/ul.md new file mode 100644 index 0000000..f139d6d --- /dev/null +++ b/_gtfobins/ul.md @@ -0,0 +1,16 @@ +--- +description: The read file content is corrupted by replacing the occurrences of underscores to terminal sequences. +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo ul "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_read + ./ul "$LFILE" + file-read: + - code: | + LFILE=file_to_read + ul "$LFILE" +--- diff --git a/_gtfobins/uniq.md b/_gtfobins/uniq.md new file mode 100644 index 0000000..5bd5df1 --- /dev/null +++ b/_gtfobins/uniq.md @@ -0,0 +1,16 @@ +--- +description: The read file content is corrupted by squashing multiple adjacent lines. +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo uniq "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_read + ./uniq "$LFILE" + file-read: + - code: | + LFILE=file_to_read + uniq "$LFILE" +---