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 email@example.com -p 2220
with the password that we got from our previous level.
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.
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