CTF · General Skills · picoCTF

Wave a flag

Link to Solve the Lab:- https://play.picoctf.org/practice/challenge/170?category=5&page=1

Concepts You Should Know Before Solving this Lab and the use of their Tutorials are Provided Below

https://www.geeksforgeeks.org/chmod-command-linux/

https://www.geeksforgeeks.org/how-to-run-bash-script-in-linux/

Hello Everyone,

So Today we are Solving the Lab in the ‘General Skills’ Category.

All the things we are doing are in Kali Linux.

As you can see in the Screenshot of the Description

Description

Can you invoke help flags for a tool or binary? This program has extraordinarily helpful information…

Hints

  1. This program will only work in the web shell or another Linux computer.
  2. To get the file accessible in your shell, enter the following in the Terminal prompt: $ wget https://mercury.picoctf.net/static/f95b1ee9f29d631d99073e34703a2826/warm
  3. Run this program by entering the following in the Terminal prompt: $ ./warm, but you’ll first have to make it executable with $ chmod +x warm
  4. -h and –help is the most common arguments to give to programs to get more information from them!
  5. Not every program implements help features like -h and –help.

So there are Three Hints As you can see above and their Explanation are Below

Above Hint’s Explanation

  1. It is Giving us a Hint that the file is a bash file So it will run in a Bash shell only
  2. We can download files using the wget command
  3. Run “chmod +x warm” to make it executable
  4. Generally, we use -h or –help to display the Help menu of any command
  5. Any command can have a different keyword instead of ‘-h’ or ‘–help’ to display the help menu

Steps

  1. Download a file using “wget https://mercury.picoctf.net/static/f95b1ee9f29d631d99073e34703a2826/warm” in the current Directory.
  2. Run “ls -l” to display all files with their Permission Again
  3. Run “chmod +x warm” to make it Executable
  4. Run “ls -l” to display all files with their Permission Again
  5. Run warm file using “./warm
  6. It is Displaying “Hello user! Pass me a -h to learn what I can do!”. So, Let’s Pass that So the command would be “./warm -h

Screenshots of the Above Steps

So the Lab is Solved.

Flag :- picoCTF{b1scu1ts_4nd_gr4vy_f0668f62}

Leave a Reply

Your email address will not be published. Required fields are marked *