标签:user iad database 命名 数据库 apache 安装 服务 server
参考:
https://github.com/digininja/DVWA
和windows不同, KALI使用MariaDB代替MySQL
apt-get -y install apache2 mariadb-server php php-mysqli php-gd libapache2-mod-php
systemctl start mysql && systemctl enable mysql
systemctl start apache2 && systemctl enable apache2
将DVWA-master复制到var/www/html
目录下, 并充命名DVWA
mysql> create database dvwa;
Query OK, 1 row affected (0.00 sec)
mysql> create user dvwa@localhost identified by ‘p@ssw0rd‘;
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on dvwa.* to dvwa@localhost;
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
访问localhost/DVWA, 账户admin, 密码 password
标签:user iad database 命名 数据库 apache 安装 服务 server
原文地址:https://www.cnblogs.com/kikochz/p/13647425.html