1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-27 23:35:27 +02:00
tldr/pages/common/binwalk.md

29 lines
951 B
Markdown
Raw Normal View History

2020-03-30 12:39:58 +02:00
# binwalk
> Firmware Analysis Tool.
> More information: <https://github.com/ReFirmLabs/binwalk>.
- Scan a binary file:
`binwalk {{path/to/binary}}`
- Extract files from a binary, specifying the output directory:
2025-06-30 10:36:58 +03:00
`binwalk {{[-e|--extract]}} {{[-C|--directory]}} {{output_directory}} {{path/to/binary}}`
2020-03-30 12:39:58 +02:00
- Recursively extract files from a binary limiting the recursion depth to 2:
2025-06-30 10:36:58 +03:00
`binwalk {{[-e|--extract]}} {{[-M|--matryoshka]}} {{[-d|--depth]}} {{2}} {{path/to/binary}}`
2020-03-30 12:39:58 +02:00
- Extract files from a binary with the specified file signature:
2025-06-30 10:36:58 +03:00
`binwalk {{[-D|--dd]}} '{{png image:png}}' {{path/to/binary}}`
2020-03-30 12:39:58 +02:00
- Analyze the entropy of a binary, saving the plot with the same name as the binary and `.png` extension appended:
2025-06-30 10:36:58 +03:00
`binwalk {{[-E|--entropy]}} {{[-J|--save]}} {{path/to/binary}}`
2020-03-30 12:39:58 +02:00
- Combine entropy, signature and opcodes analysis in a single command:
2025-06-30 10:36:58 +03:00
`binwalk {{[-E|--entropy]}} {{[-B|--signature]}} {{[-A|--opcodes]}} {{path/to/binary}}`