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.
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 stringsFind embedded passwords and API keys.
Find hidden flags and clues in binaries.
Quickly extract IOCs from malware samples.
Find network indicators in binaries.
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.