상세 컨텐츠

본문 제목

Bandit Level 0 -> Level 1

ENG/Bandit

by jaws99 2024. 8. 4. 05:40

본문

반응형

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

  • `ls` stands for list. It is used to display the contents of a directory. it lists the names of files and directories in the current directory.
  • `cat` stands for concatenate. It is used to concatenate and display the content of files.

 

Write up

bandit0@bandit:~$ ls --help
Usage: ls [OPTION]... [FILE]...

--------------------------------

bandit0@bandit:~$ ls
readme

 

Use the `ls` command to check the files and directories in the current directory.

We can see the file named `readme`, which contains the password.

 

bandit0@bandit:~$ cat --help
Usage: cat [OPTION]... [FILE]...

--------------------------------

bandit0@bandit:~$ cat readme
Congratulations on your first steps into the bandit game!!
Please make sure you have read the rules at https://overthewire.org/rules/
If you are following a course, workshop, walthrough or other educational activity,
please inform the instructor about the rules as well and encourage them to
contribute to the OverTheWire community so we can keep these games free!

The password you are looking for is: ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If

 

We can use the `cat` command to display the contents of the files.

By doing so, we found the password for the next level.

We also found out when we log in to the remote host using SSH, we will land in the home directory by default.

 

 

Next Level : Level 1 -> 2

반응형

'ENG > Bandit' 카테고리의 다른 글

Bandit Level 4 -> Level 5  (0) 2024.08.12
Bandit Level 3 -> Level 4  (0) 2024.08.10
Bandit Level 2 -> Level 3  (0) 2024.08.07
Bandit Level 1 -> Level 2  (0) 2024.08.05
Bandit Level 0  (0) 2024.08.02

관련글 더보기