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" +---