mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
New command: check_statusfile
This commit is contained in:
parent
e7c1b630ad
commit
00902fc035
17
_gtfobins/check_statusfile.md
Normal file
17
_gtfobins/check_statusfile.md
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
description: |
|
||||
This is the `check_statusfile` Nagios plugi 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_statusfile "$LFILE"
|
||||
suid:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
./check_statusfile "$LFILE"
|
||||
sudo:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
sudo check_statusfile "$LFILE"
|
||||
---
|
Loading…
Reference in New Issue
Block a user