Linux CLI – Shells Bells

This room was made available day one of the event and introduces through Linux terminal commands.

Task 1 Introduction

This section introduces the story for the event and instructs on which resources should be spun up.

Start the Virtual Machine.

Flag
There is no question or answer for this section.

Task 2 Linux CLI

Follow the instructions on using a command line interface to find the flags.

echo "Hello World"

This command outputs the text between quotes to the terminal

ls

This command lists the contents of the current directory

cat README.txt

This command reads the contents of a file to the terminal

Screenshot of terminal after cat command is run
pwd

This command prints the current working directory

cd /Guides

This command changes the current working directory to the one specified

ls
ls -a

This command prints all contents of the directory, including hidden files

cat .guide.txt
Screenshot of terminal after running the cat command
Flag
THM{learning-linux-cli}
cd /var/log
ls
grep "Failed password" auth.log

This command searches for an exact match to the text in quotes in the file specified and outputs it to the terminal.

Screenshot of terminal after running grep command
find /home/socmas -name *egg*

This command searches inside a specified directory for a file with a name matching the text provided.

Screenshot of terminal after running find command
cat /home/socmas/2025/eggstrike.sh
Screenshot of terminal after running the cat command
Flag
THM{sir-carrotbane-attacks}

Visit the IP address of the web service on port 8080 in a web browser.

Screenshot of the web service page in Firefox. Currently corrupted and listing Easter themed gifts.
cat /etc/shadow

Reading the shadow file is restricted because it contains password hashes for users of the system.

sudo su

This command elevates current account to root.

whoami

This command identifies the current user.

cat /etc/shadow
Screenshot of terminal after running cat command
history

This command shows the current user’s terminal command history

Screenshot of terminal after running the history command
Flag
THM{until-we-meet-again}

There is an optional intermediate quest that can be completed now that will lead to a Side Quest.