Files
compsoc_hacking_challenges/2l.sh
2024-09-14 00:01:38 +01:00

14 lines
251 B
Bash
Executable File

#!/bin/bash
# Read the contents of the file flag.txt using only 2 letter commands
while true; do
echo -n "$ "
read input
if [ ${#input} -eq 2 ]; then
eval "$input"
else
echo "Command is not 2 characters!"
fi
done