Reverse Engineering
strings prints the sequences of printable characters in files. Useful for finding hidden text, URLs, and clues in binaries.
sudo apt install binutils
strings [options] <file>
strings is a command-line utility that prints sequences of printable characters found in files. It is one of the simplest yet most useful binary analysis tools.
The tool is commonly the first step in binary triage. It reveals hidden URLs, IP addresses, credentials, error messages, and other text embedded in compiled code.
strings works on any file type and requires no installation on Linux. It is indispensable for malware analysis, CTF challenges, and digital forensics.
| Command | Purpose |
|---|---|
strings -a <file> | Scan all bytes explicitly. |
strings -d <object-file> | Scan initialized loaded data sections. |
strings -n <minimum-length> <file> | Set the minimum sequence length. |
strings -t x <file> | Prefix strings with hexadecimal file offsets. |
strings /path/to/filePrint printable character sequences (min length 4) from a filestrings -a /path/to/fileScan the entire file, not just initialized/loaded sectionsstrings -n 8 /path/to/fileOnly print strings at least 8 characters longstrings -t x /path/to/filePrefix each string with its file offset in hexadecimalstrings -t d /path/to/filePrefix each string with its file offset in decimalstrings -t o /path/to/filePrefix each string with its file offset in octalstrings -o /path/to/fileShorthand for -t o, printing octal offsetsstrings -f /path/to/filePrint the file name before each detected stringstrings -e s /path/to/fileSearch for single-byte (ASCII) encoded stringsstrings -e l /path/to/fileSearch for 16-bit little-endian (UTF-16LE) stringsstrings -e b /path/to/fileSearch for 16-bit big-endian encoded stringsstrings -e L /path/to/fileSearch for 32-bit little-endian encoded stringsstrings -e B /path/to/fileSearch for 32-bit big-endian encoded stringsstrings -e S /path/to/fileSearch for single-8-bit-byte encoded stringsstrings -w /path/to/fileInclude all whitespace characters as part of stringsstrings -s ' | ' /path/to/fileUse a custom separator between output stringsstrings -T elf32-i386 /path/to/fileTreat the file as the specified binary object formatstrings -n 10 -t x /path/to/fileCombine minimum length and hex offsets for triagestrings /path/to/file | grep -i passExtract strings then filter for credential-like tokensstrings /path/to/file | grep -Eo 'https?://[^ ]+'Pull URLs out of extracted stringsstrings -a -n 6 /path/to/file > out.txtDump long strings from the whole file to a text filestrings @args.txtRead command-line options and file names from a response filestrings --helpDisplay the usage summary and available optionsstrings --versionPrint the strings (GNU binutils) version informationstrings -d /path/to/fileOnly scan data (loaded, initialized) sections of the object fileFind embedded passwords and API keys.
Find hidden flags and clues in binaries.
Quickly extract IOCs from malware samples.
Find network indicators in binaries.
Reverse Engineering
objdump displays information about object files. It can disassemble executables, show headers, symbols, and more.
Reverse Engineering
This hands-on guide shows how to use Ghidra to inspect a program you compile yourself. You'll compare decompiled code with the underlying assembly, follow cross-references, and document what the binary does without executing it.
Forensics
Learn how to use Autopsy, the free digital forensics software, in a hands-on practice case. Start with a verified disk image, run ingest modules, look for deleted files, and use keyword hits and timeline entries to build a report.
Reverse Engineering
Frida is a dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers. It allows you to inject snippets of JavaScript or your own library into native apps on various platforms — making it the industry standard for runtime analysis and mobile app security testing.
Reverse Engineering
Learn how to use GDB, the GNU Debugger, by building a small C program with debug symbols and following it from the first breakpoint to a crash. Use the same steps to inspect variables, read a backtrace, and tell when a core dump or a look at the assembly would help.
Reverse Engineering
Objection is a runtime mobile exploration toolkit, powered by Frida, built to help you assess the security of your mobile applications without needing a jailbroken or rooted device.
Learn reverse engineering from scratch: analyze binaries with Ghidra and GDB, read assembly, crack a practice binary, and build a starter toolkit.
Ethical Hacking · IntermediateLearn malware analysis from scratch: build a safe isolated lab, triage samples with static and dynamic analysis, write YARA rules, and report IOCs.
Linux · BeginnerEssential command line skills for cybersecurity professionals including navigation, text processing, scripting, and automation.
Tools · BeginnerHow to use Netcat (nc) in Kali Linux: test ports, run a listener, grab banners, transfer files, and catch a reverse shell — worked example and cheat sheet.
Simply prints out any consecutive sequence of human-readable characters found embedded within the compiled machine code.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.