mirror of
https://github.com/mvt-project/mvt.git
synced 2026-10-12 10:47:26 +02:00
1 file changed
+36
-27
+36
-27
@@ -2,48 +2,57 @@ FROM ubuntu:20.04
|
|||||||
|
|
||||||
# Ref. https://github.com/mvt-project/mvt
|
# Ref. https://github.com/mvt-project/mvt
|
||||||
|
|
||||||
|
LABEL url="https://mvt.re"
|
||||||
|
LABEL vcs-url="https://github.com/mvt-project/mvt"
|
||||||
|
LABEL description="MVT is a forensic tool to look for signs of infection in smartphone devices."
|
||||||
|
|
||||||
|
ENV PIP_NO_CACHE_DIR=1
|
||||||
|
|
||||||
# Fixing major OS dependencies
|
# Fixing major OS dependencies
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y python3 python3-pip libusb-1.0-0-dev \
|
&& apt install -y python3 python3-pip libusb-1.0-0-dev \
|
||||||
&& apt install -y wget \
|
&& apt install -y wget \
|
||||||
&& apt install -y adb \
|
&& apt install -y adb \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get -y install default-jre-headless
|
&& DEBIAN_FRONTEND=noninteractive apt-get -y install default-jre-headless \
|
||||||
|
|
||||||
# Install build tools for libimobiledevice
|
# Install build tools for libimobiledevice
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
RUN apt install -y build-essential \
|
build-essential \
|
||||||
checkinstall \
|
checkinstall \
|
||||||
git \
|
git \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
libtool-bin \
|
libtool-bin \
|
||||||
libplist-dev \
|
libplist-dev \
|
||||||
libusbmuxd-dev \
|
libusbmuxd-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
pkg-config
|
pkg-config \
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
# --------
|
# --------
|
||||||
RUN apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/* /var/cache/apt
|
||||||
|
|
||||||
|
|
||||||
# Build libimobiledevice
|
# Build libimobiledevice
|
||||||
# ----------------------
|
# ----------------------
|
||||||
RUN git clone https://github.com/libimobiledevice/libplist
|
RUN git clone https://github.com/libimobiledevice/libplist \
|
||||||
RUN git clone https://github.com/libimobiledevice/libusbmuxd
|
&& git clone https://github.com/libimobiledevice/libusbmuxd \
|
||||||
RUN git clone https://github.com/libimobiledevice/libimobiledevice
|
&& git clone https://github.com/libimobiledevice/libimobiledevice \
|
||||||
RUN git clone https://github.com/libimobiledevice/usbmuxd
|
&& git clone https://github.com/libimobiledevice/usbmuxd \
|
||||||
|
|
||||||
RUN cd libplist && ./autogen.sh && make && make install && ldconfig
|
&& cd libplist && ./autogen.sh && make && make install && ldconfig \
|
||||||
|
|
||||||
RUN cd libusbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh && make && make install && ldconfig
|
&& cd ../libusbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh && make && make install && ldconfig \
|
||||||
|
|
||||||
RUN cd libimobiledevice && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --enable-debug && make && make install && ldconfig
|
&& cd ../libimobiledevice && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --enable-debug && make && make install && ldconfig \
|
||||||
|
|
||||||
RUN cd usbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run && make && make install
|
&& cd ../usbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run && make && make install \
|
||||||
|
|
||||||
|
# Clean up.
|
||||||
|
&& cd .. && rm -rf libplist libusbmuxd libimobiledevice usbmuxd
|
||||||
|
|
||||||
# Installing MVT
|
# Installing MVT
|
||||||
# --------------
|
# --------------
|
||||||
@@ -51,16 +60,16 @@ RUN pip3 install mvt
|
|||||||
|
|
||||||
# Installing ABE
|
# Installing ABE
|
||||||
# --------------
|
# --------------
|
||||||
RUN mkdir /opt/abe
|
RUN mkdir /opt/abe \
|
||||||
RUN wget https://github.com/nelenkov/android-backup-extractor/releases/download/20210709062403-4c55371/abe.jar -O /opt/abe/abe.jar
|
&& wget https://github.com/nelenkov/android-backup-extractor/releases/download/20210709062403-4c55371/abe.jar -O /opt/abe/abe.jar \
|
||||||
# Create alias for abe
|
# Create alias for abe
|
||||||
RUN echo 'alias abe="java -jar /opt/abe/abe.jar"' >> ~/.bashrc
|
&& echo 'alias abe="java -jar /opt/abe/abe.jar"' >> ~/.bashrc
|
||||||
|
|
||||||
# Setup investigations environment
|
# Setup investigations environment
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
RUN mkdir /home/cases
|
RUN mkdir /home/cases
|
||||||
WORKDIR /home/cases
|
WORKDIR /home/cases
|
||||||
RUN echo 'echo "Mobile Verification Toolkit @ Docker\n------------------------------------\n\nYou can find information about how to use this image for Android (https://github.com/mvt-project/mvt/tree/master/docs/android) and iOS (https://github.com/mvt-project/mvt/tree/master/docs/ios) in the official docs of the project.\n"' >> ~/.bashrc
|
RUN echo 'echo "Mobile Verification Toolkit @ Docker\n------------------------------------\n\nYou can find information about how to use this image for Android (https://github.com/mvt-project/mvt/tree/master/docs/android) and iOS (https://github.com/mvt-project/mvt/tree/master/docs/ios) in the official docs of the project.\n"' >> ~/.bashrc \
|
||||||
RUN echo 'echo "Note that to perform the debug via USB you might need to give the Docker image access to the USB using \"docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb mvt\" or, preferably, the \"--device=\" parameter.\n"' >> ~/.bashrc
|
&& echo 'echo "Note that to perform the debug via USB you might need to give the Docker image access to the USB using \"docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb mvt\" or, preferably, the \"--device=\" parameter.\n"' >> ~/.bashrc
|
||||||
|
|
||||||
CMD /bin/bash
|
CMD /bin/bash
|
||||||
Reference in new issue
Block a user