Level goal: The password for the next level is stored in the file data.txt in one of the few human-readable strings, beginning with several ‘=’ characters.
This level is similar to previous levels, which basically require us to search for the password in a text file. However, the difficulty is that you cannot perform the cat+grep command on it because it is a “binary” file instead of a text file.
This is when you can try out the strings command. Let’s look at the description of the strings command:
The string functions perform string operations on null-terminated strings. See the individual man pages for descriptions of each function.
In short, it goes through the entire file and any string values that it is able to find, it will display it to the output. As per the clue given to us to clear this level, let’s run a strings command on the data.txt file and grep only records with the “=” characters.
[email protected]:~$ strings data.txt | grep "=" epr~F=K 7?YD= ?M=HqAH /(Ne= C=_" I========== the6 z5Y= `h(8=` n\H=; ========== password ========== ism N$=& l/a=L) f=C( ========== truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk ie)=5e [email protected]:~$
The password to gain access to the next level is truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk.