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 edit summary
 
Line 1: Line 1:
[[File:Inside.PNG|thumb|Inside]]
===Description===
===Description===
Sometimes you only know the contents of the file but not the location or name.
Sometimes you only know the contents of the file but not the location or name.

Latest revision as of 11:49, 26 September 2022

Inside

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}