DVWA On KALI
DVWA On KALI
参考:
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