extract_strings
Extract printable ASCII and UTF-16LE strings from binary files, returning offset and encoding for each string, to enable subsequent leak detection.
Instructions
Extract printable ASCII and UTF-16LE strings from path.
Args: path: file to scan min_length: minimum string length (default 8) max_strings: per-encoding cap (default 50,000)
Returns a dict with ascii and utf16le arrays of
{"string", "offset", "encoding"}. This is the raw
string extraction — pass the result to :func:find_secrets
for the leak-detection pass.
On a 500+ MB GameAssembly.dll, prefer the section-aware
:func:re-lief.categorize_strings instead; this implementation
walks the file linearly and may be slow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| min_length | No | ||
| max_strings | No |