diff --git a/Dockerfile b/Dockerfile index 9bb77d3..aa11922 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,10 @@ MAINTAINER opsxcq RUN apt-get update && \ apt-get upgrade -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ + debconf-utils && \ + echo mysql-server-5.5 mysql-server/root_password password vulnerables | debconf-set-selections && \ + echo mysql-server-5.5 mysql-server/root_password_again password vulnerables | debconf-set-selections && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ apache2 \ mysql-server \ php5 \ diff --git a/dvwa/config/config.inc.php b/dvwa/config/config.inc.php index 37c190c..a740e10 100644 --- a/dvwa/config/config.inc.php +++ b/dvwa/config/config.inc.php @@ -15,7 +15,7 @@ $_DVWA = array(); $_DVWA[ 'db_server' ] = '127.0.0.1'; $_DVWA[ 'db_database' ] = 'dvwa'; $_DVWA[ 'db_user' ] = 'root'; -$_DVWA[ 'db_password' ] = 'p@ssw0rd'; +$_DVWA[ 'db_password' ] = 'vulnerables'; # Only used with PostgreSQL/PGSQL database selection. $_DVWA[ 'db_port '] = '5432'; @@ -23,8 +23,9 @@ $_DVWA[ 'db_port '] = '5432'; # ReCAPTCHA settings # Used for the 'Insecure CAPTCHA' module # You'll need to generate your own keys at: https://www.google.com/recaptcha/admin/create -$_DVWA[ 'recaptcha_public_key' ] = ''; -$_DVWA[ 'recaptcha_private_key' ] = ''; +# Thanks to http://stackoverflow.com/questions/34274492/dvwa-setup-php-function-allow-url-include-disabled +$_DVWA[ 'recaptcha_public_key' ] = '6LdK7xITAAzzAAJQTfL7fu6I-0aPl8KHHieAT_yJg'; +$_DVWA[ 'recaptcha_private_key' ] = '6LdK7xITAzzAAL_uw9YXVUOPoIHPZLfw2K1n5NVQ'; # Default security level # Default value for the secuirty level with each session. diff --git a/main.sh b/main.sh index b2fe46c..1bcf6ed 100755 --- a/main.sh +++ b/main.sh @@ -9,5 +9,5 @@ service apache2 start while true do tail -f /var/log/apache2/*.log - sleep 10; + exit 0 done