2015-12-30 22:22:13 +00:00
|
|
|
# strings
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Find printable strings in an object file or binary.
|
2021-10-09 15:18:46 +01:00
|
|
|
> More information: <https://manned.org/strings>.
|
2015-12-30 22:22:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +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
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Limit results to strings at least *length* characters long:
|
2015-12-30 22:22:13 +00:00
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`strings -n {{length}} {{path/to/file}}`
|
2015-12-30 22:22:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +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
|
|
|
|
2016-01-07 17:31:27 +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}}`
|