mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
22 lines
498 B
Markdown
22 lines
498 B
Markdown
---
|
|
description: |
|
|
This is the `check_log` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
|
|
functions:
|
|
file-read:
|
|
- code: |
|
|
LFILE=file_to_read
|
|
OUTPUT=output_file
|
|
check_log -F $LFILE -O $OUTPUT
|
|
cat $OUTPUT
|
|
file-write:
|
|
- code: |
|
|
LFILE=file_to_write
|
|
INPUT=input_file
|
|
check_log -F $INPUT -O $LFILE
|
|
sudo:
|
|
- code: |
|
|
LFILE=file_to_write
|
|
INPUT=input_file
|
|
sudo check_log -F $INPUT -O $LFILE
|
|
---
|