BINWALK(1)
π BINWALK(1) π
okay bestie, sit down, hydrate, because we're about to talk about the binwalk manual page and it's genuinely iconic. this is the User Commands section of the manual, and binwalk is that girl: she searches binary images for embedded files and executable code. no cap. she finds things. πβ¨
πΈ NAME πΈ
binwalk β the tool for searching binary images for embedded files and executable code. she's a detective, she's a forensic queen, she's everything. π
π SYNOPSIS π
binwalk [OPTIONS] [FILE1] [FILE2] [FILE3] ...
like. give her options, give her files, give her multiple files if you want. she's not gonna complain. she's built different. π«Ά
π¦ DESCRIPTION π¦
This is Binwalk v2.3.2+dcb1403, brought to you by Craig Heffner, ReFirmLabs. the whole vibe lives at https://github.com/ReFirmLabs/binwalk and honestly? go look. iykyk. π
β¨ Signature Scan Options β¨
these are the "what even IS in this file" options. the vibe check, if you will.
-B,--signatureβ scan your target file(s) for common file signatures. the classic. the main character move. π₯-R,--raw=<str>β scan the target file(s) for a specific sequence of bytes that you pick. custom queen behavior. π-A,--opcodesβ scan target file(s) for common executable opcode signatures. code vibes detected. β‘-m,--magic=<file>β point her at a custom magic file to use. bring your own magic. πͺ-b,--dumbβ disable smart signature keywords. yes the option is literally called dumb and yes we respect it. π-I,--invalidβ show results that got marked as invalid. she's showing you the messy ones too, no gatekeeping. π-x,--exclude=<str>β exclude results that match<str>. not today, babes. π«-y,--include=<str>β only show results that match<str>. yes only. tunnel vision. obsessed. π―
πΈ Extraction Options πΈ
this is where she stops just looking and starts taking. respectfully. π
-e,--extractβ automatically extract known file types. she does the work, you do the celebrating. π-D,--dd=<type[:ext[:cmd]]>β extract<type>signatures (that's a regular expression, bestie), give the files an extension of<ext>, and execute<cmd>. three little fields, so much power. π-M,--matryoshkaβ recursively scan extracted files. like a nesting doll, like a plot twist inside a plot twist. πͺ-d,--depth=<int>β limit the matryoshka recursion depth. default is 8 levels deep. after that she's like okay babe we're done. β-C,--directory=<str>β extract files/folders to a custom directory. default is the current working directory. π-j,--size=<int>β limit the size of each extracted file. portion control. π-n,--count=<int>β limit the number of extracted files. we're not doing infinity today. π’-r,--rmβ delete carved files after extraction. she cleans up after herself. π§Ή-z,--carveβ carve data from files, but don't execute extraction utilities. hands off, just take. π«³-V,--subdirsβ extract into sub-directories named by the offset. organized. aesthetic. folder structure slay. ποΈ
π§ Entropy Options π§
chaos measurement time. how random is this file? let's find out. πͺοΈ
-E,--entropyβ calculate file entropy. numbers go brrr. π-F,--fastβ use faster, but less detailed, entropy analysis. speed over detail, a tradeoff, we accept it. β‘-J,--saveβ save the plot as a PNG. screenshots for the group chat. πΌοΈ-Q,--nlegendβ omit the legend from the entropy plot graph. minimalism era. π€-N,--nplotβ do not generate an entropy plot graph at all. no graph. zero graph. π-H,--high=<float>β set the rising edge entropy trigger threshold. default:0.95. πΆ-L,--low=<float>β set the falling edge entropy trigger threshold. default:0.85. π
π Binary Diffing Options π
comparing files. sibling rivalry but make it forensics. π―
-W,--hexdumpβ perform a hexdump / diff of a file or files. π§Ύ-G,--greenβ only show lines containing bytes that are the same among all files. green = agree. π-i,--redβ only show lines containing bytes that are different among all files. red = everyone's fighting. β€οΈ-U,--blueβ only show lines containing bytes that are different among some files. blue = it's complicated. π-u,--similarβ only display lines that are the same between all files. matching outfits. π-w,--terseβ diff all files, but only display a hex dump of the first file. short and to the point. βοΈ
π Raw Compression Options π
squished data detection. decompress your feelings. π«§
-X,--deflateβ scan for raw deflate compression streams. π-Z,--lzmaβ scan for raw LZMA compression streams. π-P,--partialβ perform a superficial, but faster, scan. surface level but make it quick. πββοΈ-S,--stopβ stop after the first result. one and done. β
β General Options β
the everything-else section. the supporting cast that is actually all leads. π«
-l,--length=<int>β number of bytes to scan. π-o,--offset=<int>β start scan at this file offset. start where i say. π-O,--base=<int>β add a base address to all printed offsets. math but cute. β-K,--block=<int>β set the file block size. π§±-g,--swap=<int>β reverse every n bytes before scanning. flip it. π-f,--log=<file>β log results to file. receipts. π§Ύ-c,--csvβ log results to file in CSV format. spreadsheet girlies rise. π-t,--termβ format output to fit the terminal window. aesthetics matter. π₯οΈ-q,--quietβ suppress output to stdout. shhh. π€«-v,--verboseβ enable verbose output. tell me EVERYTHING. π£οΈ-h,--helpβ show help output. when in doubt. π-a,--finclude=<str>β only scan files whose names match this regex. selective. π-p,--fexclude=<str>β do not scan files whose names match this regex. blocked. π·-s,--status=<int>β enable the status server on the specified port. she's online. π
bestie reminder: options that take a value use the=form exactly like it says above, and those<str>,<int>,<float>and<file>bits are placeholders β swap in your own, don't type the angle brackets literally. π«Ά
and that's the whole page, no skips, no summaries, every flag accounted for. π
binwalk 2.3.2 β September 2021 πΈ that's the version and the date, mwah, bye bestie, go carve something iconic π β¨π¦
π¦ where this page comes from
- debian bookworm: binwalk 2.3.4+dfsg1-1 Β· MIT
- debian trixie: binwalk 2.4.3+dfsg1-2+deb13u1 Β· MIT
- ubuntu jammy: binwalk 2.3.3+dfsg1-2 Β· MIT
- ubuntu noble: binwalk 2.3.4+dfsg1-5 Β· MIT
- ubuntu questing: binwalk 2.4.3+dfsg1-2
- ubuntu resolute: binwalk 2.4.3+dfsg1-2build1 Β· MIT
- ubuntu stonking: binwalk 2.4.3+dfsg1-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms