From e50291dbd5a62facbdac216345943b926af5f561 Mon Sep 17 00:00:00 2001 From: Josh Millsap <22407981+MillsapCyber@users.noreply.github.com> Date: Mon, 13 Apr 2020 15:14:17 -0700 Subject: [PATCH] Enable URL Include The two sed commands I've added will enable the php url include functionality, which is necessary in order to complete the file inclusion exorcises. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index b04b9f7..f1e6132 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,8 @@ RUN service mysql start && \ sleep 3 && \ mysql -uroot -pvulnerables -e "CREATE USER app@localhost IDENTIFIED BY 'vulnerables';CREATE DATABASE dvwa;GRANT ALL privileges ON dvwa.* TO 'app'@localhost;" +RUN sed -ri -e "s/^allow_url_include.*/allow_url_include = On/" /etc/php/7.0/apache2/php.ini && sed -ri -e "s/^allow_url_include.*/allow_url_include = On/" /etc/php/7.0/cli/php.ini + EXPOSE 80 COPY main.sh /