You get a binary named static and a BASH script, ltdis.sh. The flag is stored as a plain string inside the binary, so strings static | grep picoCTF prints it. The script runs objdump and strings for you and saves the results to text files.
| Platform | picoGym (picoCTF 2021) |
| Verified against | vivian-dai's picoCTF 2021 writeups |
| Category | General Skills |
| Difficulty | Beginner |
| Tools | strings grep objdump |
Binary files look like noise in a text editor, but any text a program contains is stored as readable bytes somewhere inside it.
"Can you look at the data in this binary: static? This BASH script might help!" — provided: static, ltdis.sh
Stuck? Try a hint before reading the solution
Binary files still store their text as readable bytes.
strings static | grep picoCTF.
strings prints every run of printable characters in a file (4 or more by default). Filter for the flag format:
$ strings static | grep picoCTF
picoCTF{***}
That's the solve — the flag sits in the binary's data section as an ordinary string.
ltdis.sh wraps the same idea: it disassembles the binary with objdump and extracts its strings into text files next to it. Make it executable and point it at the binary:
$ chmod +x ltdis.sh
$ ./ltdis.sh static
$ ls
ltdis.sh static static.ltdis.strings.txt static.ltdis.x86_64.txt
$ grep picoCTF static.ltdis.strings.txt
Reading the script first (cat ltdis.sh) is a good reflex: it shows exactly which commands it runs before you run it.
The flag is deliberately hidden — follow the method, you've earned it. 💪
The challenge's title says it all: "static" binary data isn't always noise.
strings file | grep pattern is the first thing to try on any binaryDiscuss this writeup with the community on the CTFdojo Discord.
Join the Discord →