Bandit level 7 is an easy level that teaches you on how to search for specific words within files
Let’s start by logging into bandit level 7 machine
ssh bandit7@bandit.labs.overthewire.org -p 2220
with the password that we got from our previous level.
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs
let’s list all the files that in our home directory
So The password is inside data.txt file, let’s try to read the file with cat command.
cat data.txt
So the file contains a lot of lines that we can’t go through manually, so we need to use a command that allows us to search for specific text , and that command will be “grep”.
So now, let’s try to read the file along with piping the data to grep command
cat data.txt | grep millionth
and like this we get the password for the level 8
cvX2JJa4CFALtqS87jk27qwqGhBM9plV
Recent Comments