Extract printable strings from binary files.
low risk
strings extracts sequences of printable characters from binary files — useful for quickly inspecting executables for embedded configuration, version strings, URLs, credentials, or other readable content without a full reverse engineering setup.
| Flag | Meaning |
|---|---|
-n --bytes | Minimum string length (default: 4) |
-a --all | Scan entire file (not just data sections) |
-e --encoding | Character encoding to detect |
strings /usr/bin/curl | grep -i versionFind version string in curl binary · explain & risk-check →strings malware.bin | grep -E 'https?://'Extract URLs from a binary · explain & risk-check →strings config.bin | grep -i passwordFind hardcoded credentials (security audit) · explain & risk-check →Use `strings -n 8 binary | grep -E '^[a-zA-Z]{8,}$'` to filter out noise — longer minimum length and letter-only filter finds meaningful text like hostnames and keys.
Reference text is hand-written and may be incomplete — check man strings for your version. Test destructive commands on a non-production system first.