From 4aa87be40269482cf36c4590d800ffcee8eb245e Mon Sep 17 00:00:00 2001 From: Dov Murik Date: Tue, 12 Jun 2018 14:06:32 +0000 Subject: [PATCH] Add head, tail --- _gtfobins/head.md | 15 +++++++++++++++ _gtfobins/tail.md | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 _gtfobins/head.md create mode 100644 _gtfobins/tail.md diff --git a/_gtfobins/head.md b/_gtfobins/head.md new file mode 100644 index 0000000..e124d68 --- /dev/null +++ b/_gtfobins/head.md @@ -0,0 +1,15 @@ +--- +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo head -c1G "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_read + ./head -c1G "$LFILE" + file-read: + - code: | + LFILE=file_to_read + head -c1G "$LFILE" +--- diff --git a/_gtfobins/tail.md b/_gtfobins/tail.md new file mode 100644 index 0000000..73d0c97 --- /dev/null +++ b/_gtfobins/tail.md @@ -0,0 +1,15 @@ +--- +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo tail -c1G "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_read + ./tail -c1G "$LFILE" + file-read: + - code: | + LFILE=file_to_read + tail -c1G "$LFILE" +---