From d4d617fa554efa14dd7046fb6efed0675cb189f0 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 15 Sep 2024 19:00:38 +0100 Subject: [PATCH] [2l]: Make 2l directory + add flag --- 2l/2l.sh | 13 +++++++++++++ 2l/flag.txt | 1 + 2 files changed, 14 insertions(+) create mode 100755 2l/2l.sh create mode 100644 2l/flag.txt diff --git a/2l/2l.sh b/2l/2l.sh new file mode 100755 index 0000000..ef47bdd --- /dev/null +++ b/2l/2l.sh @@ -0,0 +1,13 @@ +#!/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 diff --git a/2l/flag.txt b/2l/flag.txt new file mode 100644 index 0000000..1eccffd --- /dev/null +++ b/2l/flag.txt @@ -0,0 +1 @@ +3xtr4l3tt3rs