This is the Next problem in the picoctf . Here is the question
After plugging the robot into the computer, the robot asks for the name of a file containing the string “
SECRET AUTH CODE". You can find it using the command-line interface in
/problems/grep.tar or by downloading all of the files.
You can download all from the link given above also i have kept a copy of the download in my google drive and you can get it from here
If you look at the hint you will be directed to this link http://www.davidbaumgold.com/tutorials/command-line/
And as the question say what we need to do is to grep the folder for the string “SECRET AUTH CODE”
this can be done by typing the following code in the terminal
grep -r ‘SECRET AUTH CODE’
The command grep searches for a piece of text in the given file. If you check the manual page of the grep ( which can be done by typing man grep in the terminal) it is described as print lines matching a pattern. One can play with grep by using all the flags in it. (Flags means the various options available for the given command)
-r here means to search the whole directory recursively in the given directory.
go to the directory (folder) and just give the command given above. You get the following output
fHYYpdrfeOCHyQicfe96xfw==:SECRET AUTH CODES
As per the question we need the filename which contains the line ‘SECRET AUTH CODES’ And hence the answer is
And carry on with the challenges