在ubuntu的终端上安装Binwalk

1、简单安装

在ubuntu的终端上执行以下命令:

$ sudo su //然后输入密码,获取root权限,避免后期执行命令时出现权限不够的情况。
$ sudo apt-get remove binwalk //卸载原有的旧版binwalk(如果有的话),采用git的方式进行安装,以便得到更好的更新。
$ sudo apt-get update //更新软件
$ sudo apt-get install build-essential autoconf git //获取开发工具git
$ git clone https://github.com/devttys0/binwalk //从git上获取binwalk的源代码
$ cd binwalk //进入binwalk文件夹
$ sudo python3 setup.py install //导入python3环境

若在执行 sudo python3 setup.py install出现Command ModuleNotFoundError: No module named 'distutils.core'错误,解决办法是:

sudo apt-get install python3-pip
 

以上是binwalk的简单安装功能有限,只能将对设备的固件进行文件组成格式的分析和设备的文件系统进行提取,不能对提取后的设备文件系统进行解压处理。要binwalk工具能对提取后的设备文件系统进行解压还需要安装binwalk工具需要的依赖库和组件工具。

二,依赖库和组件工具安装

Besides a Python interpreter, there are no installation dependencies for binwalk. All dependencies are optional run-time dependencies, and unless otherwise specified, are available from most Linux package managers

Binwalk uses the pycrypto library to decrypt some known encrypted firmware images:

# Python3.x
$ sudo apt-get install python3-crypto

Binwalk uses pyqtgraph to generate graphs and visualizations, which requires the following:

# Python3.x
$ sudo apt-get install libqt4-opengl python3-opengl python3-pyqt4 python3-pyqt4.qtopengl python3-numpy python3-scipy python3-pip
$ sudo pip3 install pyqtgraph

具体参考:https://blog.csdn.net/qq1084283172/article/details/65441110

  • 9
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Ubuntu系统上安装binwalk可以按照以下步骤进行操作: 1. 打开终端,更新安装包列表: ``` $ sudo apt-get update ``` 2. 安装Python2.7: ``` $ sudo apt-get install python2.7 ``` 3. 更新pip: ``` $ sudo apt update $ sudo apt install python-pip $ pip install --upgrade pip ``` 4. 安装必要的开发工具和依赖项: ``` $ sudo apt-get install build-essential autoconf git ``` 5. 从GitHub上克隆binwalk的源代码: ``` $ git clone https://github.com/devttys0/binwalk ``` 6. 进入binwalk文件夹: ``` $ cd binwalk ``` 7. 使用Python3环境安装binwalk: ``` $ sudo python3 setup.py install ``` 这样就完成了在Ubuntu系统上安装binwalk的过程。请注意,安装过程中可能需要输入密码以获取root权限。\[1\]\[2\] #### 引用[.reference_title] - *1* [在ubuntu终端安装Binwalk](https://blog.csdn.net/z2664836046/article/details/89193138)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [在Ubuntu系统下安装杂项必备工具binwalk](https://blog.csdn.net/qq_62999000/article/details/122010423)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Ubuntu安装binwalk完整步骤](https://blog.csdn.net/u013071014/article/details/122426769)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值