configuration added

This commit is contained in:
OPSXCQ 2018-10-12 16:11:19 +00:00
parent c37af6fc80
commit dba6e6179a
No known key found for this signature in database
GPG Key ID: 9AD730FE9CDE5661
2 changed files with 49 additions and 0 deletions

View File

@ -22,6 +22,8 @@ RUN apt-get update && \
COPY php.ini /etc/php5/apache2/php.ini COPY php.ini /etc/php5/apache2/php.ini
COPY dvwa /var/www/html COPY dvwa /var/www/html
COPY config.inc.php /var/www/html/config/
RUN chown www-data:www-data -R /var/www/html && \ RUN chown www-data:www-data -R /var/www/html && \
rm /var/www/html/index.html rm /var/www/html/index.html

47
config.inc.php Normal file
View File

@ -0,0 +1,47 @@
<?php
# If you are having problems connecting to the MySQL database and all of the variables below are correct
# try changing the 'db_server' variable from localhost to 127.0.0.1. Fixes a problem due to sockets.
# Thanks to @digininja for the fix.
# Database management system to use
$DBMS = 'MySQL';
#$DBMS = 'PGSQL'; // Currently disabled
# Database variables
# WARNING: The database specified under db_database WILL BE ENTIRELY DELETED during setup.
# Please use a database dedicated to DVWA.
#
# If you are using MariaDB then you cannot use root, you must use create a dedicated DVWA user.
# See README.md for more information on this.
$_DVWA = array();
$_DVWA[ 'db_server' ] = '127.0.0.1';
$_DVWA[ 'db_database' ] = 'dvwa';
$_DVWA[ 'db_user' ] = 'root';
$_DVWA[ 'db_password' ] = 'vulnerables';
# Only used with PostgreSQL/PGSQL database selection.
$_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' ] = '';
# Default security level
# Default value for the secuirty level with each session.
# The default is 'impossible'. You may wish to set this to either 'low', 'medium', 'high' or impossible'.
$_DVWA[ 'default_security_level' ] = 'low';
# Default PHPIDS status
# PHPIDS status with each session.
# The default is 'disabled'. You can set this to be either 'enabled' or 'disabled'.
$_DVWA[ 'default_phpids_level' ] = 'disabled';
# Verbose PHPIDS messages
# Enabling this will show why the WAF blocked the request on the blocked request.
# The default is 'disabled'. You can set this to be either 'true' or 'false'.
$_DVWA[ 'default_phpids_verbose' ] = 'false';
?>