Code Monkey home page Code Monkey logo

terminalwizard's Introduction

Terminal Wizard

For this task, you have to 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. You also need to install gh (GitHub CLI) to advance further, the steps for which can be found here

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".

You only need to push the contents of your "codes" folder to your "amfoss-tasks" repository. But you should push your work after every challenge you complete i.e. after every part of the secret code you find.

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

Note: Run the Python spell files that you find to get the secret code associated with that spell and copy the specific Python spell files to the "codes" folder. 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 execute 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 execute 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. Execute the Python 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.

terminalwizard's People

Contributors

2205u avatar kshitijthareja avatar thehuntsman4 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.