-
Notifications
You must be signed in to change notification settings - Fork 68
/
Dockerfile
83 lines (68 loc) · 1.98 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
FROM ubuntu:20.04
MAINTAINER [email protected]
ARG ARACHNI_VERSION=arachni-1.5.1-0.5.12
ARG DEBIAN_FRONTEND=noninteractive
# Install Ruby and other OS stuff
RUN apt-get update && \
apt-get install -y build-essential \
bzip2 \
ca-certificates \
curl \
gcc \
git \
libcurl4 \
libcurl4-openssl-dev \
wget \
zlib1g-dev \
libfontconfig \
libxml2-dev \
libxslt1-dev \
make \
python3-pip \
ruby \
ruby-dev \
ruby-bundler && \
rm -rf /var/lib/apt/lists/*
# Install Gauntlt
RUN gem install rake
RUN gem install ffi -v 1.9.18
RUN gem install gauntlt
# Install Attack tools
WORKDIR /opt
# arachni
RUN wget https://github.com/Arachni/arachni/releases/download/v1.5.1/${ARACHNI_VERSION}-linux-x86_64.tar.gz && \
tar xzvf ${ARACHNI_VERSION}-linux-x86_64.tar.gz > /dev/null && \
mv ${ARACHNI_VERSION} /usr/local && \
ln -s /usr/local/${ARACHNI_VERSION}/bin/* /usr/local/bin/
# Nikto
RUN apt-get update && \
apt-get install -y libtimedate-perl \
libnet-ssleay-perl && \
rm -rf /var/lib/apt/lists/*
RUN git clone --depth=1 https://github.com/sullo/nikto.git && \
cd nikto/program && \
echo "EXECDIR=/opt/nikto/program" >> nikto.conf && \
ln -s /opt/nikto/program/nikto.conf /etc/nikto.conf && \
chmod +x nikto.pl && \
ln -s /opt/nikto/program/nikto.pl /usr/local/bin/nikto
# sqlmap
WORKDIR /opt
ENV SQLMAP_PATH /opt/sqlmap/sqlmap.py
RUN git clone --depth=1 https://github.com/sqlmapproject/sqlmap.git
# dirb
COPY vendor/dirb222.tar.gz dirb222.tar.gz
RUN tar xvfz dirb222.tar.gz > /dev/null && \
cd dirb222 && \
chmod 755 ./configure && \
./configure && \
make && \
ln -s /opt/dirb222/dirb /usr/local/bin/dirb
ENV DIRB_WORDLISTS /opt/dirb222/wordlists
# nmap
RUN apt-get update && \
apt-get install -y nmap && \
rm -rf /var/lib/apt/lists/*
# sslyze
RUN pip install sslyze
ENV SSLYZE_PATH /usr/local/bin/sslyze
ENTRYPOINT [ "/usr/local/bin/gauntlt" ]