Home - Writeups - Bandit Overthewire wargames walkthrough level 6 – 10

Bandit Overthewire wargames walkthrough level 6 – 10

Bandit overthewire wargames level 0 – 5

Bandit overthewire wargames level 11 – 15

Overthewire wargames bandit are for beginners. As it helps in learning Linux and command line. So we will continue the game here is the link to next level.

Level 6→10

  • Host: bandit.labs.overthewire.org
  • port: 2220

bandit level 5 → 6

As we know the password of the next level inside “inhere” directory. But there are lots of files and we cannot use the trial and error method. However, three properties of the file are given. Therefore we will use the “find” command with parameters to search it by properties. For instance, the first parameter is “-readable” which gives the output of readable files. The second parameter is “! – executable” which gives the output of not executable files. The third parameter is “-size 1033c” which gives the output of 1033 bytes of filesize.

bandit level 6,wargames, overthewire
  • ls
  • find . -readable ! -executable -size 1033c
  • cat ./inhere/maybehere07/.file2

bandit level 6 → 7

As we know the password for the next level is stored somewhere on the server. But Traversing the entire file system is not efficient and time-consuming. However, three properties of the file are given. Firstly file user is bandit7. Secondly, the file group is bandit6. Thirdly file size is 33 bytes. We will use find command with parameters “-user”, “-group” and “size “.

bandit level 7,wargames, overthewire
  • find / -user bandit7 -group bandit6 -size 33c

We found one file badnit7.password. We will use cat command to read the password for next level.

bandit level 7,wargames, overthewire, password
  • cat /var/lib/dpkg/info/bandit7.password

bandit level 7 → 8

As we know the password of the next level is stored in data.txt next to word millionth. We will use cat command and grep command with pipe operator. grep is a command line utility and it is used to search for plain text. After that, we can use ssh to login to the next level.

bandit level 8,wargames, overthewire
  • ls
  • data.txt | grep millionth

bandit level 8 → 9

We are instructed that password next level occurs only once. We will use uniq command to get the password. Uniq command is used to get unique texts in other words text that occurs only once. But data should be sorted. Therefore we use sort command as well as uniq command with pipe operator.

bandit level 9,wargames, overthewire
  • ls
  • sort data.txt | uniq -u

bandit level 9 → 10

As we know the password for the next level is in data.txt. But data.txt is not ASCII text. We used file command to see filetype. Therefore we know of data.txt is data file type. We cannot use cat command to read the file as it will print unreadable elements. Therefore we will use strings command top print ASCII text in data.txt. We will use it with grep command using pipe operator.

bandit level 10, wargames, overthewire
  • ls
  • file data.txt
  • strings data.txt | grep “==”

Bandit overthewire wargames level 0 – 5

Bandit overthewire wargames level 11 – 15

Share it with your friends

Share
4 1 vote
Article Rating
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
trackback
1 year ago

[…] Bandit overthewire wargames level 6 – 10 […]

1
0
Would love your thoughts, please comment.x
()
x