| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13. |
| 2 |
.TH BINWALK "1" "September 2021" "binwalk 2.3.2" "User Commands" |
| 3 |
.SH NAME |
| 4 |
binwalk \- tool for searching binary images for embedded files and executable code |
| 5 |
.SH SYNOPSIS |
| 6 |
.B binwalk |
| 7 |
[\fI\,OPTIONS\/\fR] [\fI\,FILE1\/\fR] [\fI\,FILE2\/\fR] [\fI\,FILE3\/\fR] ... |
| 8 |
.SH DESCRIPTION |
| 9 |
Binwalk v2.3.2+dcb1403 |
| 10 |
Craig Heffner, ReFirmLabs |
| 11 |
https://github.com/ReFirmLabs/binwalk |
| 12 |
.SS "Signature Scan Options:" |
| 13 |
.TP |
| 14 |
\fB\-B\fR, \fB\-\-signature\fR |
| 15 |
Scan target file(s) for common file signatures |
| 16 |
.TP |
| 17 |
\fB\-R\fR, \fB\-\-raw=\fR<str> |
| 18 |
Scan target file(s) for the specified sequence of bytes |
| 19 |
.TP |
| 20 |
\fB\-A\fR, \fB\-\-opcodes\fR |
| 21 |
Scan target file(s) for common executable opcode signatures |
| 22 |
.TP |
| 23 |
\fB\-m\fR, \fB\-\-magic=\fR<file> |
| 24 |
Specify a custom magic file to use |
| 25 |
.TP |
| 26 |
\fB\-b\fR, \fB\-\-dumb\fR |
| 27 |
Disable smart signature keywords |
| 28 |
.TP |
| 29 |
\fB\-I\fR, \fB\-\-invalid\fR |
| 30 |
Show results marked as invalid |
| 31 |
.TP |
| 32 |
\fB\-x\fR, \fB\-\-exclude=\fR<str> |
| 33 |
Exclude results that match <str> |
| 34 |
.TP |
| 35 |
\fB\-y\fR, \fB\-\-include=\fR<str> |
| 36 |
Only show results that match <str> |
| 37 |
.SS "Extraction Options:" |
| 38 |
.TP |
| 39 |
\fB\-e\fR, \fB\-\-extract\fR |
| 40 |
Automatically extract known file types |
| 41 |
.TP |
| 42 |
\fB\-D\fR, \fB\-\-dd=\fR<type[:ext[:cmd]]> |
| 43 |
Extract <type> signatures (regular expression), give the files an extension of <ext>, and execute <cmd> |
| 44 |
.TP |
| 45 |
\fB\-M\fR, \fB\-\-matryoshka\fR |
| 46 |
Recursively scan extracted files |
| 47 |
.TP |
| 48 |
\fB\-d\fR, \fB\-\-depth=\fR<int> |
| 49 |
Limit matryoshka recursion depth (default: 8 levels deep) |
| 50 |
.TP |
| 51 |
\fB\-C\fR, \fB\-\-directory=\fR<str> |
| 52 |
Extract files/folders to a custom directory (default: current working directory) |
| 53 |
.TP |
| 54 |
\fB\-j\fR, \fB\-\-size=\fR<int> |
| 55 |
Limit the size of each extracted file |
| 56 |
.TP |
| 57 |
\fB\-n\fR, \fB\-\-count=\fR<int> |
| 58 |
Limit the number of extracted files |
| 59 |
.TP |
| 60 |
\fB\-r\fR, \fB\-\-rm\fR |
| 61 |
Delete carved files after extraction |
| 62 |
.TP |
| 63 |
\fB\-z\fR, \fB\-\-carve\fR |
| 64 |
Carve data from files, but don't execute extraction utilities |
| 65 |
.TP |
| 66 |
\fB\-V\fR, \fB\-\-subdirs\fR |
| 67 |
Extract into sub\-directories named by the offset |
| 68 |
.SS "Entropy Options:" |
| 69 |
.TP |
| 70 |
\fB\-E\fR, \fB\-\-entropy\fR |
| 71 |
Calculate file entropy |
| 72 |
.TP |
| 73 |
\fB\-F\fR, \fB\-\-fast\fR |
| 74 |
Use faster, but less detailed, entropy analysis |
| 75 |
.TP |
| 76 |
\fB\-J\fR, \fB\-\-save\fR |
| 77 |
Save plot as a PNG |
| 78 |
.TP |
| 79 |
\fB\-Q\fR, \fB\-\-nlegend\fR |
| 80 |
Omit the legend from the entropy plot graph |
| 81 |
.TP |
| 82 |
\fB\-N\fR, \fB\-\-nplot\fR |
| 83 |
Do not generate an entropy plot graph |
| 84 |
.TP |
| 85 |
\fB\-H\fR, \fB\-\-high=\fR<float> |
| 86 |
Set the rising edge entropy trigger threshold (default: 0.95) |
| 87 |
.TP |
| 88 |
\fB\-L\fR, \fB\-\-low=\fR<float> |
| 89 |
Set the falling edge entropy trigger threshold (default: 0.85) |
| 90 |
.SS "Binary Diffing Options:" |
| 91 |
.TP |
| 92 |
\fB\-W\fR, \fB\-\-hexdump\fR |
| 93 |
Perform a hexdump / diff of a file or files |
| 94 |
.TP |
| 95 |
\fB\-G\fR, \fB\-\-green\fR |
| 96 |
Only show lines containing bytes that are the same among all files |
| 97 |
.TP |
| 98 |
\fB\-i\fR, \fB\-\-red\fR |
| 99 |
Only show lines containing bytes that are different among all files |
| 100 |
.TP |
| 101 |
\fB\-U\fR, \fB\-\-blue\fR |
| 102 |
Only show lines containing bytes that are different among some files |
| 103 |
.TP |
| 104 |
\fB\-u\fR, \fB\-\-similar\fR |
| 105 |
Only display lines that are the same between all files |
| 106 |
.TP |
| 107 |
\fB\-w\fR, \fB\-\-terse\fR |
| 108 |
Diff all files, but only display a hex dump of the first file |
| 109 |
.SS "Raw Compression Options:" |
| 110 |
.TP |
| 111 |
\fB\-X\fR, \fB\-\-deflate\fR |
| 112 |
Scan for raw deflate compression streams |
| 113 |
.TP |
| 114 |
\fB\-Z\fR, \fB\-\-lzma\fR |
| 115 |
Scan for raw LZMA compression streams |
| 116 |
.TP |
| 117 |
\fB\-P\fR, \fB\-\-partial\fR |
| 118 |
Perform a superficial, but faster, scan |
| 119 |
.TP |
| 120 |
\fB\-S\fR, \fB\-\-stop\fR |
| 121 |
Stop after the first result |
| 122 |
.SS "General Options:" |
| 123 |
.TP |
| 124 |
\fB\-l\fR, \fB\-\-length=\fR<int> |
| 125 |
Number of bytes to scan |
| 126 |
.TP |
| 127 |
\fB\-o\fR, \fB\-\-offset=\fR<int> |
| 128 |
Start scan at this file offset |
| 129 |
.TP |
| 130 |
\fB\-O\fR, \fB\-\-base=\fR<int> |
| 131 |
Add a base address to all printed offsets |
| 132 |
.TP |
| 133 |
\fB\-K\fR, \fB\-\-block=\fR<int> |
| 134 |
Set file block size |
| 135 |
.TP |
| 136 |
\fB\-g\fR, \fB\-\-swap=\fR<int> |
| 137 |
Reverse every n bytes before scanning |
| 138 |
.TP |
| 139 |
\fB\-f\fR, \fB\-\-log=\fR<file> |
| 140 |
Log results to file |
| 141 |
.TP |
| 142 |
\fB\-c\fR, \fB\-\-csv\fR |
| 143 |
Log results to file in CSV format |
| 144 |
.TP |
| 145 |
\fB\-t\fR, \fB\-\-term\fR |
| 146 |
Format output to fit the terminal window |
| 147 |
.TP |
| 148 |
\fB\-q\fR, \fB\-\-quiet\fR |
| 149 |
Suppress output to stdout |
| 150 |
.TP |
| 151 |
\fB\-v\fR, \fB\-\-verbose\fR |
| 152 |
Enable verbose output |
| 153 |
.TP |
| 154 |
\fB\-h\fR, \fB\-\-help\fR |
| 155 |
Show help output |
| 156 |
.TP |
| 157 |
\fB\-a\fR, \fB\-\-finclude=\fR<str> |
| 158 |
Only scan files whose names match this regex |
| 159 |
.TP |
| 160 |
\fB\-p\fR, \fB\-\-fexclude=\fR<str> |
| 161 |
Do not scan files whose names match this regex |
| 162 |
.TP |
| 163 |
\fB\-s\fR, \fB\-\-status=\fR<int> |
| 164 |
Enable the status server on the specified port |