diff --git a/_gtfobins/check_memory.md b/_gtfobins/check_memory.md new file mode 100644 index 0000000..d04333a --- /dev/null +++ b/_gtfobins/check_memory.md @@ -0,0 +1,17 @@ +--- +description: | + This is the `check_memory` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`. The read file content is limited to the first line. +functions: + file-read: + - code: | + LFILE=file_to_read + check_memory --extra-opts=@"$LFILE" + suid: + - code: | + LFILE=file_to_read + ./check_memory --extra-opts=@"$LFILE" + sudo: + - code: | + LFILE=file_to_read + sudo check_memory --extra-opts=@"$LFILE" +---