-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
36 lines (32 loc) · 1.27 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
# Mutillidae Dockerfile
# Running on Ubuntu 16.04 Xampp v5.6.30 Stack
#
# Dockerfile: mutillidae-docker
# Author: Brennan Lee Turner (@BLTSEC)
# License: BSD 3-Clause
# https://github.com/BLTSEC/mutillidae-docker
#
# Pull base image
FROM ubuntu:16.04
# Working Directory
WORKDIR /root
# Install
RUN \
apt-get update && \
apt-get -y install wget && \
apt-get install unzip && \
apt-get -y install supervisor && \
wget -O xampp.run https://www.apachefriends.org/xampp-files/5.6.30/xampp-linux-x64-5.6.30-0-installer.run && \
chmod +x ./xampp.run && \
./xampp.run --mode unattended && \
wget -O mutillidae.zip https://sourceforge.net/projects/mutillidae/files/latest/download && \
unzip mutillidae.zip && \
cp -r mutillidae /opt/lampp/htdocs/ && \
sed -i 's/Deny/Allow/g' /opt/lampp/htdocs/mutillidae/.htaccess && \
sed -i -E 's/,Allow/,Deny/' /opt/lampp/htdocs/mutillidae/.htaccess && \
echo "[supervisord]" > /etc/supervisor/conf.d/supervisord.conf && \
echo "nodaemon=true" >> /etc/supervisor/conf.d/supervisord.conf && \
echo "[program:xampp]" >> /etc/supervisor/conf.d/supervisord.conf && \
echo "command=/bin/bash -c '/opt/lampp/xampp start'" >> /etc/supervisor/conf.d/supervisord.conf
EXPOSE 80 443 3306
CMD ["/usr/bin/supervisord"]