2018-12-02 01:31:46 +08:00
|
|
|
FROM registry.makerforce.io/ambrose/env:latest
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
# required for pwntools
|
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
|
2018-12-02 02:06:18 +08:00
|
|
|
# capstone pip version (in pwntools) conflict with capstone distro version, so install pip version first
|
|
|
|
RUN pip3 install capstone
|
|
|
|
|
2018-12-02 01:31:46 +08:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
libcrypto1.1@edge libssl1.1@edge radare2@community \
|
|
|
|
volatility \
|
|
|
|
john \
|
2018-12-02 02:06:18 +08:00
|
|
|
libffi-dev libressl-dev lzo-dev linux-headers python3-dev \
|
2018-12-02 01:31:46 +08:00
|
|
|
httpie \
|
|
|
|
jq \
|
|
|
|
socat \
|
|
|
|
netcat-openbsd \
|
|
|
|
binwalk@testing \
|
|
|
|
exiftool \
|
|
|
|
graphicsmagick \
|
|
|
|
testdisk \
|
|
|
|
squashfs-tools \
|
|
|
|
libpcap
|
|
|
|
|
|
|
|
# required for pwntools
|
2018-12-02 02:06:18 +08:00
|
|
|
RUN wget -O /tmp/pandoc.tar.gz \
|
|
|
|
https://github.com/jgm/pandoc/releases/download/2.5/pandoc-2.5-linux.tar.gz \
|
|
|
|
&& tar -xvf /tmp/pandoc.tar.gz --strip=1 -C /usr/local \
|
|
|
|
&& rm /tmp/pandoc.tar.gz
|
2018-12-02 01:31:46 +08:00
|
|
|
|
2018-12-02 02:18:29 +08:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
python2 \
|
|
|
|
&& pip3 install \
|
2018-12-02 01:31:46 +08:00
|
|
|
pwntools \
|
|
|
|
requests \
|
|
|
|
python-lzo \
|
|
|
|
crcmod
|
2018-12-02 02:18:29 +08:00
|
|
|
# python2 for unicorn
|
2018-12-02 02:06:18 +08:00
|
|
|
# lzo-dev, python-lzo and crcmod for ubidump.py
|
2018-12-02 01:31:46 +08:00
|
|
|
|
|
|
|
RUN git clone https://github.com/bwall/HashPump.git \
|
|
|
|
&& cd HashPump \
|
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf HashPump
|
|
|
|
|
|
|
|
RUN git clone https://github.com/robertdavidgraham/masscan \
|
|
|
|
&& cd masscan \
|
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf masscan
|
|
|
|
|
|
|
|
RUN wget -O /usr/local/bin/jwt_tool.py \
|
|
|
|
https://raw.githubusercontent.com/ticarpi/jwt_tool/master/jwt_tool.py \
|
|
|
|
&& chmod +x /usr/local/bin/jwt_tool.py
|
|
|
|
|
|
|
|
RUN wget -O /usr/local/bin/ubidump.py \
|
|
|
|
https://raw.githubusercontent.com/nlitsme/ubidump/master/ubidump.py \
|
|
|
|
&& chmod +x /usr/local/bin/ubidump.py \
|
|
|
|
&& sed -i '1s/^/#!\/usr\/bin\/env python3\n/' /usr/local/bin/ubidump.py
|
|
|
|
|
|
|
|
RUN wget -O /tmp/sqlmap.tar.gz \
|
|
|
|
https://github.com/sqlmapproject/sqlmap/tarball/master \
|
2018-12-02 12:46:52 +08:00
|
|
|
&& mkdir -p /usr/local/lib/sqlmap \
|
2018-12-02 02:06:18 +08:00
|
|
|
&& tar -xvf /tmp/sqlmap.tar.gz --strip=1 -C /usr/local/lib/sqlmap \
|
2018-12-02 01:31:46 +08:00
|
|
|
&& rm /tmp/sqlmap.tar.gz \
|
|
|
|
&& ln -s /usr/local/lib/sqlmap/sqlmap.py /usr/local/bin/sqlmap
|
2018-12-08 13:08:16 +08:00
|
|
|
|
|
|
|
# requires JRE, but won't install
|
|
|
|
RUN wget -O /usr/local/bin/apktool.jar \
|
|
|
|
https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.3.4.jar \
|
|
|
|
&& wget -O /usr/local/bin/apktool \
|
|
|
|
https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool \
|
|
|
|
&& chmod +x /usr/local/bin/apktool.jar /usr/local/bin/apktool
|
|
|
|
|
2018-12-08 14:32:37 +08:00
|
|
|
# utilities
|
|
|
|
COPY bin/* /usr/local/bin/
|
|
|
|
|
2018-12-02 01:31:46 +08:00
|
|
|
USER ambrose
|