Bandit level 5 in an extension to level 4 where you how to use find command in order to search for files with specific preferences.
Let’s start by logging into the machine
ssh bandit5@bandit.labs.overthewire.org -p 2220
with the password that we got from our previous level.
pIwrPrtPN36QITSp3EQaw936yaFoFgAB
let’s list all the files that in our home directory
let’s access the “inhere” directory with
cd inhere
now let’s list all the files inside the directory
There are a lot of directories, so the simple thing we did in the previous level won’t work here.
now let’s structure the find command ( i will structure part of it, as the size is too specific :D)
find . -type f -size 1033c
Now, let’s explain what is the above
- “.” is for current directory
- -type f is for the type which is “file”
- -size is to specify the size of the file we’re searching for
- c is for bytes
now let’s read that file
cat ./maybehere07/.file2
and here we got the password for our next level.
DXjZPULLxYr17uwoI01bNLQbtFemEgo7
you can access the next level from here
Recent Comments