Quantcast
Channel: 看得透又看得远者prevail. ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
Viewing all articles
Browse latest Browse all 20543

用DnsByTcp避免dns污染

$
0
0
this project is to avoid the DNS poisoning.

About

This project use python script, but I just have a little skill with python, so the main script is based on henices/Tcp-DNS-proxy.
If you are not a pythoner, maybe you can try my another project isayme/fuck_dns which is also associated with DNS poisoning.

How To Use

Linux User

  1. change your dns server to 127.0.0.1
    $ vi /etc/resolve.conf
    nameserver 127.0.0.1
  2. restart the network $ sudo /etc/init.d/networking restart
  3. run the script : $ sudo python DnsByTcp.py

Windows User

  1. change your dns server to 127.0.0.1, you can use my bat script(cdns.bat) and follow its prompt message to change your dns server fastly.
  2. run the script $ sudo python DnsByTcp.py

-----

又是以tcp协议发出dns请求的方法,可用,看看能用多久。
你可以克隆DnsByTcp后,修改里面的DnsByTcp.py文件里的倒数第二行里的53为其他端口,比如54,以避免使用53这个默认的端口。

使用例子:
sudo wg-quick up wg0 


networksetup -setdnsservers "Wi-Fi""Empty"&& networksetup -setdnsservers "Wi-Fi" 127.0.0.1

cd ~/dnsbytcp && sudo python DnsByTcp.py


Viewing all articles
Browse latest Browse all 20543

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>