Skip to content

proraj4/TerminalWizard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Wizard

Let's play the role of Harry Potter, as a participant of the Terminal Wizard Cup. Your task is to find the Championship Cup, which is hidden deep inside a maze. Along the way, you'll find secret codes which you must save in a separate text file. You need to collect all the codes to complete the task successfully.

Note: All the parts of this task should be strictly implemented using Linux terminal commands only.

1. Enter the maze

To begin, Clone this GitHub repository to your device using git clone https://github.com/KshitijThareja/TerminalWizard.git

Also, create a new directory in the same repository named "codes".

The complete code is divided into 4 different parts, which you'll be finding as the task progresses.

Note: Use the 'cat' command files to read the spell file that you find to get the secret code associated with that spell. Also create a new text file in "codes", named "Part_x.txt" where 'x' refers to the part number and enter the secret code you received into that file.

You can start now. Best of luck!

2. First challenge

As you were navigating the maze, you came across a blast-ended-skrewt. To fight it, you need to use the right spell, which will be found in the directory '0x', where x is the first perfect number. The spell is stored in the file "Spell_0y", where y is the number you get by differentiating (x²-7x) w.r.t 'x'.

Now navigate to the file in the spellbook which has the same name as the spell you discovered earlier and check it to find the secret code.

3. Second challenge

As you were finding your way after defeating the skrewt, you encountered a giant spider. The spell that you need to fight it, is stored in the file "Spell_0x" in the folder "0y". To determine the file name, take the atomic number of the element that was first used to make semiconductors, and use its units place digit for 'y' and its tenths place digit for 'x'.

Navigate to the file in the spellbook which has the same name as the spell you discovered earlier and check it to find the secret code.

The files containing the next two parts of the password are present on different branches. Don't worry we’ll help you with this one. Run the command "git branch -a" to see all the local and remote branches of the repository. You can use git checkout <branch_name> in the terminal to switch to the new branch.

4. Third challenge

For this task, you'd have to switch to a branch, which is named after the subject taught by Professor Lupin at Hogwarts.

On your way ahead, you encounter a Sphinx. For the Sphinx to allow you to pass safely, you'll have to solve a riddle given by it. The riddle is:

In Hogwarts' realm of magic and might,

A shape-shifting enigma takes flight.

In shadows deep, it finds its place,

Unveiling fears that you embrace.

From your darkest thoughts it springs,

Taking forms of frightful things.

With laughter or terror, it delights,

Revealing what your mind ignites.

(Hint: it's a shape-shifting creature)

Search what spell will you use to fight this creature from the web. Check the file named after that spell from the spellbook to get the secret code. But wait! This spell file is present in another branch. You need to copy it to the spellbook of the main branch. For this, you can execute the following command from the main branch by "cd'ing" into the required folder: git checkout <remote branch> <Relative path of the file to be copied from the other branch>

After this, you will be able to see the required file in your main branch.

5. Fourth challenge

After the Sphinx cleared your way, you were able to reach the Cup. But wait! The cup turned out to be a portkey and you find yourself teleported to a graveyard. It was Lord Voldemort's plan, an evil wizard who was thought to be dead until now, to bring you here so that he can finish you off as you are his prime enemy. You need to fight him off and get out of the graveyard with your life. While fighting him, one of your spells initiated a phenomenon that will help you to escape.

The spell is hidden in the commit logs of this repository.

6. The End

Finally, all the parts of the complete code are in one place. Now we just need to combine them to get the secret code and store it in a new file called finalcode.txt. Navigate to the 'codes' folder and concatenate all the contents of the file into a text file called finalcode.txt. After concatenating delete all the files except finalcode.txt.

Congratulations, you've found the code. But what does this code mean? The secret is... it is encoded in base64. To decode it, use: echo <base64 encodedString> | base64 --decode You'll know what to do with that code once you decode it to a readable format. Go ahead and decode it, Champion.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published