forked from mikesplain/openvas-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
94 lines (89 loc) · 3.67 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
84
85
86
87
88
89
90
91
92
93
94
# OpenVAS
FROM ubuntu:14.04
MAINTAINER Mike Splain [email protected]
ADD bin/* /openvas/
ADD config/redis.config /etc/redis/redis.config
RUN apt-get update && \
apt-get install software-properties-common -yq && \
add-apt-repository ppa:mikesplain/openvas -y && \
apt-get update && \
apt-get upgrade -y && \
apt-get install alien \
dirb \
dnsutils \
nikto \
nmap \
nsis \
openssh-client \
openvas \
openvas-smb \
psmisc \
python \
python-paramiko \
python-pip \
python-setuptools \
rpm \
rsync \
sqlite3 \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
wapiti \
wget \
-yq && \
mkdir /osp && \
cd /osp && \
wget http://wald.intevation.org/frs/download.php/1999/ospd-1.0.0.tar.gz && \
wget http://wald.intevation.org/frs/download.php/2145/ospd-1.0.1.tar.gz && \
wget http://wald.intevation.org/frs/download.php/2177/ospd-1.0.2.tar.gz && \
wget http://wald.intevation.org/frs/download.php/2005/ospd-ancor-1.0.0.tar.gz && \
wget http://wald.intevation.org/frs/download.php/2097/ospd-debsecan-1.0.0.tar.gz && \
wget http://wald.intevation.org/frs/download.php/2003/ospd-ovaldi-1.0.0.tar.gz && \
wget http://wald.intevation.org/frs/download.php/2149/ospd-paloalto-1.0b1.tar.gz && \
wget http://wald.intevation.org/frs/download.php/2004/ospd-w3af-1.0.0.tar.gz && \
wget http://wald.intevation.org/frs/download.php/2181/ospd-acunetix-1.0b1.tar.gz && \
tar zxvf ospd-1.0.0.tar.gz && \
tar zxvf ospd-1.0.1.tar.gz && \
tar zxvf ospd-1.0.2.tar.gz && \
tar zxvf ospd-ancor-1.0.0.tar.gz && \
tar zxvf ospd-debsecan-1.0.0.tar.gz && \
tar zxvf ospd-ovaldi-1.0.0.tar.gz && \
tar zxvf ospd-paloalto-1.0b1.tar.gz && \
tar zxvf ospd-w3af-1.0.0.tar.gz && \
tar zxvf ospd-acunetix-1.0b1.tar.gz && \
cd /osp/ospd-1.0.0 && \
python setup.py install && \
cd /osp/ospd-ancor-1.0.0 && \
pip install requests && \
python setup.py install && \
cd /osp/ospd-debsecan-1.0.0 && \
python setup.py install && \
cd /osp/ospd-ovaldi-1.0.0 && \
python setup.py install && \
cd /osp/ospd-1.0.1 && \
python setup.py install && \
cd /osp/ospd-paloalto-1.0b1 && \
python setup.py install && \
cd /osp/ospd-w3af-1.0.0 && \
pip install Pexpect && \
python setup.py install && \
cd /osp/ospd-acunetix-1.0b1 && \
python setup.py install && \
cd /osp/ospd-1.0.2 && \
python setup.py install && \
cd /tmp && \
wget https://github.com/Arachni/arachni/releases/download/v1.2.1/arachni-1.2.1-0.5.7.1-linux-x86_64.tar.gz && \
tar -zxvf arachni-1.2.1-0.5.7.1-linux-x86_64.tar.gz && \
mv arachni-1.2.1-0.5.7.1 /opt/arachni && \
ln -s /opt/arachni/bin/* /usr/local/bin/ && \
rm -rf /tmp/arachni* && \
mkdir -p /openvas && \
wget https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup --no-check-certificate -O /openvas/openvas-check-setup && \
chmod a+x /openvas/openvas-check-setup && \
apt-get clean -yq && \
apt-get autoremove -yq && \
rm -rf /var/lib/apt/lists/* && \
/openvas/setup.sh
CMD /openvas/start.sh
# Expose UI
EXPOSE 80 443 9390 9391 9392