Over The Wire - Bandit - Level 5-6


bandit level 5-6
Goal: Find the password for the next level stored somewhere under the inhere directory.
File property : human readable
                        1033 bytes in size
                        not executable

bandit level 5-6
Log in to the host bandit5
bandit level 5-6
The inhere directory contains so many directories inside it.
bandit level 5-6
Each of the directories has so many files inside it. from these files we need to find our password file which is human readable, 1033 bytes in size and executable.
So we use find command.
bandit level 5-6
use the above help menu of find command to get our file.
I figured out the below commands for finding our file.
find -type f -size 1033c -not -executable

bandit level 5-6
bandit level 5-6
Password : DXjZPULLxYr17uwoI01bNLQbtFemEgo7