From 9430e6ca8dc0a28b6e9bd840eca51f54e49a6b5f Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 17 Sep 2024 18:06:06 +0100 Subject: [PATCH] [approved]: print challenge information --- approved/approved.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/approved/approved.pl b/approved/approved.pl index ddcd1d1..a628230 100755 --- a/approved/approved.pl +++ b/approved/approved.pl @@ -4,6 +4,13 @@ my @approved_commands = ("ls", "pwd", "whoami"); +print("Read the contents of flag.txt. You can only use commands in the approved list. +Hint: You can supply whatever parameters you like to the command! +"); + +print("Approved commands: "); +print("\n - $_") foreach (@approved_commands); + while (1) { printf("\n> "); my $command = ;