binwalk --dd

本文介绍了如何使用binwalk命令批量提取并解压特定类型的压缩文件(如.gz和.lzma),并通过配置文件实现自动化操作。通过设置多个--dd参数,可以自动处理常见文件类型。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[url]http://www.devttys0.com/2012/12/binwalk-0-5-release/[/url]

[quote]
[color=darkblue][b]binwalk --dd='gzip:gz:gunzip %e' firmware.bin[/b][/color]
[/quote]
The above command instructs Binwalk to extract any file whose description contains the text ‘gzip’, save it to disk with a ‘gz’ file extension, and to then run the ‘gunzip %e’ command (the %e is a placeholder that will be replaced with the actual name of the extracted file). This allows for auto extraction and decompression of gzipped files.

Although multiple –dd options may be specified, there are probably several common file types that you always want to be extracted whenever they are encountered. Binwalk 0.5 allows you to place multiple –dd arguments into the $HOME/.binwalk/extract.conf file:

[quote]
# Extract and decompress gzip and lzma files
[color=darkblue][b]gzip:gz:gunzip %e
lzma:7z:7zip -d %e
[/b][/color]
# Extract private keys, but don't run anything
private key:key
[/quote]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值