Over The Wire - Bandit - Level 6-7


over the wire bandit level 6-7

Goal: Find the password stored in 'somewhere on the server'

Properties of the file:

owned by user bandit7

owned by group bandit6

33 bytes in size

over the wire bandit level 6-7

Now we run the following command to find the file
find / -user bandit7 -group bandit6 -size 33c
over the wire bandit level 6-7
over the wire bandit level 6-7

In the list of files you can find a file '/var/lib/dpkg/info/bandit7.password'
So open the file using cat command
over the wire bandit level 6-7
Password: HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs