From 9c96140f1d1c8fe5edbc637edf9643670285dc85 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Thu, 6 Sep 2018 17:04:47 +0200 Subject: [PATCH] Add date Thanks to #20. --- _gtfobins/date.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 _gtfobins/date.md diff --git a/_gtfobins/date.md b/_gtfobins/date.md new file mode 100644 index 0000000..312ce07 --- /dev/null +++ b/_gtfobins/date.md @@ -0,0 +1,19 @@ +--- +description: | + Each line is corrupted by a prefix string and wrapped inside quotes, so this may not be suitable for binary files. + + This only works for the GNU variant of `date`. +functions: + file-read: + - code: | + LFILE=file_to_read + date -f $LFILE + suid-enabled: + - code: | + LFILE=file_to_read + ./date -f $LFILE + sudo-enabled: + - code: | + LFILE=file_to_read + sudo date -f $LFILE +---