使用ettercap进行dns欺骗

使用ettercap进行dns欺骗

操作系统kali linux    使用软件ettercap

1、 在kali linux中运行ifconfig命令,查看本机的IP地址

使用ettercap进行dns欺骗

2、进入etc/Ettercap目录,修改etter.dns文件,在文件中图示位置添加图中的两行文字

(IP地址为本机刚刚查询到的IP地址,并注意每行前边有一个*号)

使用ettercap进行dns欺骗使用ettercap进行dns欺骗

3、 在终端中输入命令 /etc/init.d/apache2 start命令(启动网页服务器),要修改dns欺骗之后显示的网页,需要进入/var/www/html中修改index.html文件。

使用ettercap进行dns欺骗

4、 输入命令ettercap –G启动ettercap的图形化界面

使用ettercap进行dns欺骗

使用ettercap进行dns欺骗

5、 点击sniff,选择unified sniffing,选择网卡,默认eht0

使用ettercap进行dns欺骗

使用ettercap进行dns欺骗

6、 选择hosts,点击scan for hosts,扫描完成之后点击hosts list

使用ettercap进行dns欺骗


7、 在hosts list中显示了扫描出来的主机,选择网关地址,点击Add to Target1
选择你要攻击的ip地址,点击Add to Target2

使用ettercap进行dns欺骗



8、 选择mitm中ARP poisoning,然后选择第一项,点击确定

使用ettercap进行dns欺骗

使用ettercap进行dns欺骗


9、 选择plugins中manage the plugins,在出现的列表中双击dns_spoof

使用ettercap进行dns欺骗

使用ettercap进行dns欺骗



10、 最后start

使用ettercap进行dns欺骗


Last 测试一下效果
在我指定ip的电脑上,随便访问什么网址,均显示如下页面

使用ettercap进行dns欺骗


(要修改这个页面的内容,需要进入/var/www/html中修改index.html文件)

如有错误,敬请指正

联系方式:[email protected],欢迎联系