tldr/pages/common/strings.md

21 lines
461 B
Markdown
Raw Normal View History

2015-12-30 22:22:13 +00:00
# strings
> Find printable strings in an object file or binary.
> More information: <https://manned.org/strings>.
2015-12-30 22:22:13 +00:00
- Print all strings in a binary:
2015-12-30 22:22:13 +00:00
2022-12-04 09:12:49 +00:00
`strings {{path/to/file}}`
2015-12-30 22:22:13 +00:00
- Limit results to strings at least n characters long:
2015-12-30 22:22:13 +00:00
`strings -n {{n}} {{path/to/file}}`
2015-12-30 22:22:13 +00:00
- Prefix each result with its offset within the file:
2015-12-30 22:22:13 +00:00
2022-12-04 09:12:49 +00:00
`strings -t d {{path/to/file}}`
2015-12-30 22:22:13 +00:00
- Prefix each result with its offset within the file in hexadecimal:
2015-12-30 22:22:13 +00:00
2022-12-04 09:12:49 +00:00
`strings -t x {{path/to/file}}`