mirror of
https://github.com/DarrylNixon/binhop
synced 2024-04-22 12:37:06 -07:00
Add Dockerfile.
This commit is contained in:
parent
fb002fcca2
commit
b88a17e3c7
3 changed files with 96 additions and 1 deletions
80
Dockerfile
Normal file
80
Dockerfile
Normal file
|
@ -0,0 +1,80 @@
|
|||
FROM ubuntu:20.04
|
||||
|
||||
# Based on https://github.com/sheabot/binwalk-docker/blob/main/Dockerfile
|
||||
|
||||
ENV PORT=8080
|
||||
|
||||
# Set shell to bash instead of dash
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN echo "dash dash/sh boolean false" | debconf-set-selections && dpkg-reconfigure dash
|
||||
|
||||
# Binwalk installation instructions from:
|
||||
# https://github.com/ReFirmLabs/binwalk/blob/master/INSTALL.md
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
arj \
|
||||
binwalk \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
cabextract \
|
||||
cramfsswap \
|
||||
default-jdk \
|
||||
git-core \
|
||||
gzip \
|
||||
lhasa \
|
||||
liblzma-dev \
|
||||
liblzo2-dev \
|
||||
liblzo2-dev \
|
||||
lzop \
|
||||
mtd-utils \
|
||||
p7zip \
|
||||
p7zip-full \
|
||||
python3 \
|
||||
python3-lzo \
|
||||
python3-pip \
|
||||
sleuthkit \
|
||||
squashfs-tools \
|
||||
srecord \
|
||||
tar \
|
||||
wget \
|
||||
zlib1g-dev && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install sasquatch to extract non-standard SquashFS images
|
||||
RUN git clone https://github.com/devttys0/sasquatch /tmp/sasquatch && \
|
||||
cd /tmp/sasquatch && \
|
||||
./build.sh && \
|
||||
cd / && \
|
||||
rm -rf /tmp/sasquatch
|
||||
|
||||
# Install jefferson to extract JFFS2 file systems
|
||||
RUN pip3 install cstruct && \
|
||||
git clone https://github.com/sviehb/jefferson /tmp/jefferson && \
|
||||
cd /tmp/jefferson && \
|
||||
python3 setup.py install && \
|
||||
cd / && \
|
||||
rm -rf /tmp/jefferson
|
||||
|
||||
# Install ubi_reader to extract UBIFS file systems
|
||||
RUN git clone https://github.com/jrspruitt/ubi_reader /tmp/ubi_reader && \
|
||||
cd /tmp/ubi_reader && \
|
||||
python3 -m pip install . && \
|
||||
cd / && \
|
||||
rm -rf /tmp/ubi_reader
|
||||
|
||||
# Install yaffshiv to extract YAFFS file systems
|
||||
RUN git clone https://github.com/devttys0/yaffshiv /tmp/yaffshiv && \
|
||||
cd /tmp/yaffshiv && \
|
||||
python3 setup.py install && \
|
||||
cd / && \
|
||||
rm -rf /tmp/yaffshiv
|
||||
|
||||
# Install binhop
|
||||
RUN git clone https://sillyhats.mips.uk/pdf/binhop /tmp/binhop && \
|
||||
cd /tmp/binhop && \
|
||||
python3 -m pip install -r requirements.txt
|
||||
|
||||
# Run binhop
|
||||
EXPOSE $PORT
|
||||
CMD cd /tmp/binhop && python3 /tmp/binhop/binhop.py --port $PORT
|
Loading…
Add table
Add a link
Reference in a new issue