Wargame Walkthrough: Bandit level 6

This is a walkthrough to the bandit wargame made by OverTheWire. It can be found on their website at https://overthewire.org/wargames/bandit

Given Info: The password for the next level is stored somewhere on the server and has all of the following properties: owned by user bandit7, owned by group bandit6, 33 bytes in size

To find this password, we can use the same find command that we used last time, just changing the folder we search. Because the file is on the server we have to expand our search by navigating back further to the root directory. This can be done with ‘cd /’ or using ‘cd ..’ until we cant go any further.

After this we can search using the parameters given: ‘find ./ -user bandit7 -group bandit6 -size 33c’. This command will search the entire server for files with those characteristics, and so will run into a lot of permission errors. Ignore every file given that shows ‘permission denied’ and look for the filepath that is allowed. Only one should be printed. Once we see it we can look inside it and find the password.

Output from the file command
Password found!

Don’t forget to save after every password you add to your list! Yesterday I was working and made it to bandit level 27, but when I logged on today I realized that I had forgotten to save all the passwords I had gotten. Please remember to save, so you don’t have to learn the hard way. 🙂

This wargame can be found on https://overthewire.org/wargames/bandit
Check them out for more wargames and the rest of the levels.

2 Replies to “Wargame Walkthrough: Bandit level 6”

  1. This is so cool…. Oh, man! Losing a save is rough.

  2. Keep on learning and stretching yourself. Proud of you.

Leave a Reply