pico-CTF — Magikarp Ground Mission

USKI
3 min readFeb 7, 2024

--

description

Description

Do you know how to move between directories and read files in the shell? Start the container, `ssh` to it, and then `ls` once connected to begin. Login via `ssh` as `ctf-player` with the password, `b60940ca`

Additional details will be available after launching your challenge instance.

Before entering the flag hunt, we will learn and for the elders we will relearn it is that we already know

> SSH

What is SSH?

SSH, also known as Secure Shell or Secure Socket Shell, is a network protocol that gives users, particularly system administrators, a secure way to access a computer over an unsecured network.

List of Command

# ls

The ls command provides a way to list files within a directory. However, many options allow for output filtering or to change what information to display.
The ls Command

To display all files and directories except hidden files, use the ls command. Specify the relative or absolute path of a directory to list files in that directory. If no directory is specified, the contents of the current directory are displayed. ls

ls 
controlz.txt gpt.txt uski.txt lvl0.txt

# cd

The cd command is used to change directories. This command is very straightforward to use, but it does have a few useful shortcuts.

The cd Command
1. While relatively navigating the Linux file system, it is often useful to know the path to the current directory. To display the full pathname of the present working directory, use the pwd command. pwd
2. /home/userid3.
4. To navigate to a subdirectory relative to your current working directory, use the cd command followed by the target directory.

cd {target directory}

# cat

The cat command on Linux concatenates files together. It’s often used to concatenate one file to nothing to print the single file’s contents to the terminal. This is a quick way to preview the contents of a text file without having to open the file in a large application.

1. How to View the Content of a Single File in Linux
The most basic use of ‘cat’ is to display the contents of a file on the terminal. This can be achieved by simply providing the filename as an argument:
Syntax:
cat file_name

Example: If our file_name = flagforuski.txt

cat flagforuski.txt

I believe that here I showed you all the tools or command that will help us will say the process well I will put the screenshot of the process

  1. copy the link in description and past into ur terminal

After launching you will receive the countdown and the SSH link to connect to your terminal

In the description we have

Username:

Password:

We are full

Once we launch the link on our terminal the authentication (the password)

d

Here we are connected

I explain to you here

As said above: the flag is in part so you walk around playing with the: cat, cd, and ls

I let you analyze my image and see my commands to also find like me the flag above

Good work

flags : picoCTF{xxsh_0ut_0f_\/\/4t3r_c1754242}

thank you

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

USKI
USKI

No responses yet

Write a response