Can you find the flag in file without running it?
- It's easy. The solution is in the name of the challenge.
- I have to find the flag in the string output of the file.
- So, I opened the bash terminal in the folder where I have downloaded the given file.
- Then I ran below command in the terminal
Here I have used the
strings ./strings | grep pico
strings
command to get the string version of the file. Here the filename is also "strings" so the next part is./strings
and then I usedgrep
command after pipe character to search through the output. I searched for the word "pico" because I knew that the flag is gonna start with the wordpicoCTF
- And as soon as I pressed
Enter
key, the flag showed up 😃