CTF: Bandit Level 0 > 1 Walkthrough

CTF: Bandit Level 0 > 1 Walkthrough

Technically the first level after SSH into the server, we now need to start finding flags.

Level Goal

The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.

Commands you may need to solve this level

ls, cd, cat, file, du, find

 

To start with I am using ‘ls’ which is used to list directory contents, there are many arguments you can use with the command and a very good site I use is https://linux.die.net/man/1/ls which gives you a good breakdown of what can be used.

After running the ls command we see a file called ‘readme’ which we need to open.

The Linux command cat is one of the most frequently used commands on Unix-like operating systems.

It has three related functions with regard to text files: displaying them, combining copies of them and creating new ones.

cat’s general syntax is:-

cat [options] [filenames] [-] [filenames]

The square brackets indicate that the enclosed items are optional.

So we run the following command:-

Cat readme

And we see the flag 😊

 

From there we exit out of bandit0 and connect to bandit1 inputting the flag as the password, I like to highlight the flag and use my middle mouse scroll button to paste it in

.

See you next time for Bandit Level  1 > 2 Walkthrough

Bandit 0 > 1 = https://overthewire.org/wargames/bandit/bandit1.html


Originally posted: https://thesecuritynoob.com/ctf-walkthrough/ctf-bandit-level-0-1-walkthrough/

March 6, 2020

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of
© HAKIN9 MEDIA SP. Z O.O. SP. K. 2013