[approved]: print challenge information
This commit is contained in:
@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
my @approved_commands = ("ls", "pwd", "whoami");
|
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) {
|
while (1) {
|
||||||
printf("\n> ");
|
printf("\n> ");
|
||||||
my $command = <STDIN>;
|
my $command = <STDIN>;
|
||||||
|
Reference in New Issue
Block a user