Lessons Learned
the grep command searches for strings in a file, it outputs the entire line containing the searched string
Logging in
On a kali vm/ linux machine
Type:
ssh bandit7@bandit.labs.overthewire.org -p 2220
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs
Completing The Challenge
The Goal:
password for next level located in the file data.txt next to the word millionth
The Solution:
bandit7@bandit:~$ ls
data.txt
bandit7@bandit:~$ grep millionth data.txt
millionth cvX2JJa4CFALtqS87jk27qwqGhBM9plV
grep is essentially a string search that returns the line in a file where the string is found
grep takes modifiers and the word its searching for first
the file should be the final input to a grep search
Comments
Post a Comment