OverTheWire: Bandit Level 6 to Level 7

bandit6_1

Level goal: 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

 

This level is very similar to the previous level, which you have already completed by now using the find command. However, in this level, we need to include more parameters to be more specific in what we want to search for, as the scope of search is the entire machine rather than just 80 files in a folder.

band[email protected]:~$ find / -user bandit7 -group bandit6 -size 33c
/var/lib/dpkg/info/bandit7.password

The above command basically perform a search on the root directory, as depicted by the slash (/) symbol right after the find command. Other parameters includes,

  1. user, which defines the file owner, bandit7
  2. group, which defines the file group, bandit6 in this case
  3. size, which defines the size of the file. 33c means 33 bytes of characters

The output is the following,

[email protected]:~$ cat /var/lib/dpkg/info/bandit7.password
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs

The password to gain access to the next level is HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs


4 Comments

  • Pingback: OverTheWire: Bandit Write-up | My Learning Journey

  • Sid Patel

    November 19, 2017

    I executed the find command and all i got was a bunch of files and then at the end it said “permission denied”

    Reply
    • Wen Bin

      December 1, 2017

      Hi Sid, you must be missing something, try harder 🙂
      or… maybe someone changed something accidentally, since it is a shared environment.

      Reply
    • Emilynn Goodwin-McKay

      March 31, 2018

      I got the same problem. I tried typing the command in, and also copying and pasting from this blog post. Have you discovered what your problem was?

      Reply

Leave a Reply

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