0,下载kali的vm版本
这个版本免安装vmtools,在kali上安装vmtools比较麻烦。
1,配置为静态网络:
vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.7.66
netmask 255.255.0.0
gateway 192.168.255.254
/etc/init.d/networking restart
另外虚拟机也得配置成桥接模式,非nat模式
auto eth0代表着系统启动则启动eth0
3,配置dns
vi /etc/resolv.conf
nameserver 192.168.1.1
nameserver 114.114.114.114
4,配置源sources.list
vi /etc/apt/sources.list
#中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
#阿里云kali源
deb http://mirrors.aliyun.com/kali kali main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free
sudo apt-get update
sudo apt-get upgrade
安装中文输入法:
apt-get install ibus ibus-pinyin
5,dvwa相关设置
(1),启动apache和mysql
service apache2 start
service mysql start
本地访问127.0.0.1看看是否成功
(2),外网可访问
找到.htdaccess,
# Limit access to localhost
#<Limit GET POST PUT>
# order deny,allow
# deny from all
allow from 192.168.7.63
#</Limit>
(3),配置数据库
vi config/config.inc.php
将db_password置为空,更多信息参考README
$_DVWA[ ‘db_password‘ ] = ‘‘;
成功的标记:
原文地址:http://3502990.blog.51cto.com/3492990/1638765