日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

Ubuntu下的固件分析Binwalk的安装

發布時間:2025/3/20 Ubuntu 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Ubuntu下的固件分析Binwalk的安装 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

自述

這次安裝binwalk踩了N多的坑,為大家避一下,并介紹一下軟件的安裝;

安裝

環境

這方面需要是Ubuntu16 這系列的版本的, 剛開始我用的是 Ubuntu20 ,結果報了很多錯;

然后需要虛擬機上面安裝 python2.7;

安裝語句:

一.安裝python 2.7

首先使用以下命令更新包列表:$ sudo apt-get update然后安裝python2.7$ sudo apt-get install python2.7 $ sudo apt update安裝python2.7 pip$ sudo apt install python-pip $ pip install --upgrade pip

二.binwalk安裝

$ sudo apt-get update $ sudo apt-get install build-essential autoconf git# https://github.com/devttys0/binwalk/wiki/Quick-Start-Guide $ wget https://github.com/devttys0/binwalk/archive/master.zip $ unzip master.zip$ (cd binwalk-master && sudo python setup.py uninstall && sudo python setup.py install)# 自動安裝依賴庫文件和工具組件 $ sudo ./binwalk-master/deps.sh

要是上面的# 自動安裝依賴庫文件和工具組件執行不了,執行下面這一個;

# 自動安裝依賴庫文件 $ sudo ./deps.sh

安裝python-lzma

sudo apt-get install python-lzma

安裝好之后基本上就可以使用一些常規的命令了;

binwalk -Y binwalk -Me 解壓固件

3.有選擇性的安裝binwalk的依賴庫文件和組件工具。

$ sudo apt-get update $ sudo apt-get install build-essential autoconf git# https://github.com/devttys0/binwalk/blob/master/INSTALL.md $ git clone https://github.com/devttys0/binwalk.git $ cd binwalk# python2.7安裝 $ sudo python setup.py install# python2.7手動安裝依賴庫 $ sudo apt-get install python-lzma$ sudo apt-get install python-crypto$ sudo apt-get install libqt4-opengl python-opengl python-qt4 python-qt4-gl python-numpy python-scipy python-pip $ sudo pip install pyqtgraph$ sudo apt-get install python-pip $ sudo pip install capstone# Install standard extraction utilities(必選) $ sudo apt-get install mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsprogs cramfsswap squashfs-tools# Install sasquatch to extract non-standard SquashFS images(必選) $ sudo apt-get install zlib1g-dev liblzma-dev liblzo2-dev $ git clone https://github.com/devttys0/sasquatch $ (cd sasquatch && ./build.sh)# Install jefferson to extract JFFS2 file systems(可選) $ sudo pip install cstruct $ git clone https://github.com/sviehb/jefferson $ (cd jefferson && sudo python setup.py install)# Install ubi_reader to extract UBIFS file systems(可選) $ sudo apt-get install liblzo2-dev python-lzo $ git clone https://github.com/jrspruitt/ubi_reader $ (cd ubi_reader && sudo python setup.py install)# Install yaffshiv to extract YAFFS file systems(可選) $ git clone https://github.com/devttys0/yaffshiv $ (cd yaffshiv && sudo python setup.py install)# Install unstuff (closed source) to extract StuffIt archive files(可選) $ wget -O - http://my.smithmicro.com/downloads/files/stuffit520.611linux-i386.tar.gz | tar -zxv $ sudo cp bin/unstuff /usr/local/bin/

總結

以上是生活随笔為你收集整理的Ubuntu下的固件分析Binwalk的安装的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。