2015-12-30 15:22:13 -07:00
|
|
|
# strings
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Find printable strings in an object file or binary.
|
2021-10-09 10:18:46 -04:00
|
|
|
> More information: <https://manned.org/strings>.
|
2015-12-30 15:22:13 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Print all strings in a binary:
|
2015-12-30 15:22:13 -07:00
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`strings {{path/to/file}}`
|
2015-12-30 15:22:13 -07:00
|
|
|
|
2023-12-19 13:25:22 +01:00
|
|
|
- Limit results to strings at least n characters long:
|
2015-12-30 15:22:13 -07:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`strings {{[-n|--bytes]}} {{n}} {{path/to/file}}`
|
2015-12-30 15:22:13 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Prefix each result with its offset within the file:
|
2015-12-30 15:22:13 -07:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`strings {{[-t|--radix]}} d {{path/to/file}}`
|
2015-12-30 15:22:13 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Prefix each result with its offset within the file in hexadecimal:
|
2015-12-30 15:22:13 -07:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`strings {{[-t|--radix]}} x {{path/to/file}}`
|