write-ups-challenges-2020-2021/lost-keys/test_script/test_script.sh
2022-11-24 18:03:20 +01:00

14 lines
161 B
Bash
Executable File

#!/bin/bash
# $1: IP, $2: Port
RES=$(ssh -p $2 -i id_rsa joske@$1 "cat flag.txt")
echo $RES
if [[ "$RES" == *"IGCTF"* ]]; then
exit 0
else
exit 1
fi