Inside: Difference between revisions
From Pessin randon wiki
Created page with "===Description=== Sometimes you only know the contents of the file but not the location or name. 50pts ===Question=== Find a file from the system that has following line in it <code>The cake is a lie</code> It is located inn one of the subfolders of <code>/usr/</code> ===Solution=== With <code>grep</code> tool you can find strings inside files. Lets use <code>grep -r "The cake is a lie" /urs/</code> ===Tools=== *grep ===Flag=== <code>ctf-tech{f62cf6d8-f27f}</code> ===..." |
(No difference)
|
Revision as of 11:48, 26 September 2022
Description
Sometimes you only know the contents of the file but not the location or name.
50pts
Question
Find a file from the system that has following line in it The cake is a lie
It is located inn one of the subfolders of /usr/
Solution
With grep tool you can find strings inside files.
Lets use grep -r "The cake is a lie" /urs/
Tools
- grep
Flag
ctf-tech{f62cf6d8-f27f}