From a659ed5d5fd952bfe0bab4bbbcae20498955f07c Mon Sep 17 00:00:00 2001 From: s3krit Date: Wed, 12 Dec 2018 18:08:22 +0100 Subject: [PATCH] Add file --- _gtfobins/file.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 _gtfobins/file.md diff --git a/_gtfobins/file.md b/_gtfobins/file.md new file mode 100644 index 0000000..4bf510d --- /dev/null +++ b/_gtfobins/file.md @@ -0,0 +1,21 @@ +--- +description: | + Each line is corrupted by a prefix string and wrapped inside quotes, so this may not be suitable for binary files. + + If a line in the target file begins with a `#`, it will not be printed as these lines are parsed as comments. + + It can also be provided with a directory and will read each file in the directory. +functions: + file-read: + - code: | + LFILE=file_to_read + file -m $LFILE + suid: + - code: | + LFILE=file_to_read + ./file -m $LFILE + sudo: + - code: | + LFILE=file_to_read + sudo file -m $LFILE +---