1,確定局域網ip
2,修改/etc/ettercap/etter.dns 添加自己的ip和劫持域名
3,/var/www/index.html (修改html页面替换被劫持的网站页面)
4,啓動apache2 /etc/init.d/apache2 start 启动apache服务器
5,ettercap -G
選擇plugins >dns_spoof
Mitm >arp >sniff (arp欺骗,不要忘了添加你要攻击的目标ip)