最近工作不太饱和,闲的无聊想了一个点子: 如果在某些网络环境中,只有 DNS 协议请求能够通过,那能否通过某种特殊的渠道实现互相的消息传递。 然后研究了一下,实现了一个只通过 DNS 就可以传输文本消息的小玩具
并且搭建了一个对应的 DNS 服务器
使用方法:下载上面的 py 脚本 python3 dnsay.py --dns-host 144.34.239.89 --group test
--dns-host 144.34.239.89 就是我搭建的特殊的 dns 服务器
--group 可以理解为聊天室,相同的 group 才能收到彼此的消息
欢迎品尝
|  |      1lzoje      4 天前 上上周阮一峰周报有一个用 dns 代理免费用飞机 wifi 的。 | 
|      2julyclyde      4 天前 古代还有 ICMP 的 | 
|      3python35      4 天前 之前还有 xshell 的后门就是用 dns 协议上传用户名密码  https://ti.qianxin.com/blog/articles/analysis-of-xshell-ghost/ | 
|  |      4pagxir      4 天前 via Android 这个是古早点子了,看这个 https://github.com/yarrick/iodine | 
|  |      5wangweiggsn      4 天前 py 3.13.9, 报 ModuleNotFoundError: No module named 'dns',运行  pip install dns.resolver 报 ERROR: Could not find a version that satisfies the requirement dns.resolver (from versions: none),放弃。 | 
|      6xjzshttps      4 天前 我记得之前还有 dns 隧道 | 
|  |      7Greatshu      4 天前  1 有个叫 DCM 的木马,也是利用 DNS 通信,据说是国家队作品 | 
|      8deplives OP @wangweiggsn 哥,你需要的是 pip install dnslib dnspython cryptography | 
|  |      9wangweiggsn      3 天前 @deplives 感谢,可以了,进去看了下,没人在里面说话,又退出了。 | 
|      11chennqqi      2 天前 DNS 隧道 |