commands.sh

binwalk

all

Firmware Analysis Tool.

More info →

Options (9)

-e, --extractboolean

Extract files from a binary, specifying the output directory

Example: binwalk {{[-e|--extract]}} {{[-C|--directory]}} {{output_directory}} {{path/to/binary}}
-C, --directoryboolean

Extract files from a binary, specifying the output directory

Example: binwalk {{[-e|--extract]}} {{[-C|--directory]}} {{output_directory}} {{path/to/binary}}
-M, --matryoshkaboolean

Recursively extract files from a binary limiting the recursion depth to 2

Example: binwalk {{[-e|--extract]}} {{[-M|--matryoshka]}} {{[-d|--depth]}} {{2}} {{path/to/binary}}
-d, --depthboolean

Recursively extract files from a binary limiting the recursion depth to 2

Example: binwalk {{[-e|--extract]}} {{[-M|--matryoshka]}} {{[-d|--depth]}} {{2}} {{path/to/binary}}
-D, --ddboolean

Extract files from a binary with the specified file signature

Example: binwalk {{[-D|--dd]}} '{{png image:png}}' {{path/to/binary}}
-E, --entropyboolean

Analyze the entropy of a binary, saving the plot with the same name as the binary and `.png` extension appended

Example: binwalk {{[-E|--entropy]}} {{[-J|--save]}} {{path/to/binary}}
-J, --saveboolean

Analyze the entropy of a binary, saving the plot with the same name as the binary and `.png` extension appended

Example: binwalk {{[-E|--entropy]}} {{[-J|--save]}} {{path/to/binary}}
-B, --signatureboolean

Combine entropy, signature, and opcodes analysis in a single command

Example: binwalk {{[-E|--entropy]}} {{[-B|--signature]}} {{[-A|--opcodes]}} {{path/to/binary}}
-A, --opcodesboolean

Combine entropy, signature, and opcodes analysis in a single command

Example: binwalk {{[-E|--entropy]}} {{[-B|--signature]}} {{[-A|--opcodes]}} {{path/to/binary}}

Examples (6)

Scan a binary file

binwalk path/to/binary

Extract files from a binary, specifying the output directory

binwalk [-e|--extract] [-C|--directory] output_directory path/to/binary

Recursively extract files from a binary limiting the recursion depth to 2

binwalk [-e|--extract] [-M|--matryoshka] [-d|--depth] 2 path/to/binary

Extract files from a binary with the specified file signature

binwalk [-D|--dd] 'png image:png' path/to/binary

Analyze the entropy of a binary, saving the plot with the same name as the binary and `.png` extension appended

binwalk [-E|--entropy] [-J|--save] path/to/binary

Combine entropy, signature, and opcodes analysis in a single command

binwalk [-E|--entropy] [-B|--signature] [-A|--opcodes] path/to/binary
made by @shridhargupta | data from tldr-pages