Ubuntu下的固件分析Binwalk的安装
生活随笔
收集整理的這篇文章主要介紹了
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的安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux用extundelete恢复磁
- 下一篇: Ubuntu下安装zsteg隐写工具