mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Fixed indentation
This commit is contained in:
parent
64b4b9de1f
commit
bd1e3ce65d
@ -3,32 +3,32 @@ description: |
|
|||||||
This is the `check_by_ssh` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
|
This is the `check_by_ssh` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
|
||||||
functions:
|
functions:
|
||||||
command:
|
command:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='/usr/bin/id'
|
COMMAND='/usr/bin/id'
|
||||||
OUTPUT="output_file"
|
OUTPUT="output_file"
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo "$COMMAND | tee \"$OUTPUT\"" > $TF
|
echo "$COMMAND | tee \"$OUTPUT\"" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS
|
check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS
|
||||||
cat $OUTPUT
|
cat $OUTPUT
|
||||||
suid:
|
suid:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='/usr/bin/id'
|
COMMAND='/usr/bin/id'
|
||||||
OUTPUT="output_file"
|
OUTPUT="output_file"
|
||||||
umask 022
|
umask 022
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo "$COMMAND | tee \"$OUTPUT\"" > $TF
|
echo "$COMMAND | tee \"$OUTPUT\"" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
./check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS
|
./check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS
|
||||||
cat $OUTPUT
|
cat $OUTPUT
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='/usr/bin/id'
|
COMMAND='/usr/bin/id'
|
||||||
OUTPUT="output_file"
|
OUTPUT="output_file"
|
||||||
umask 022
|
umask 022
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo "$COMMAND | tee \"$OUTPUT\"" > $TF
|
echo "$COMMAND | tee \"$OUTPUT\"" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
sudo check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS
|
sudo check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS
|
||||||
cat $OUTPUT
|
cat $OUTPUT
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user