Interactsh搭建DNSLog服務
VSole2021-12-07 20:15:00
前言
因為覺得interactsh好用,而且開源,所以就自己搭建了一波。
interactsh 是為nuclei打造的dnslog服務。
官方Web地址https://app.interactsh.com/
其實最好用的是這個https://github.com/Buzz2d0/Hyuga
對比interactsh支持DNS重綁定。
效果

搭建步驟
準備兩個域名A和B,一臺ECS,官方是一個,但是改dns服務器容易出問題,直接解析不到。
A的設置:

B的設置

A域名就是用來做dnslog的域名。
在VPS上執行:
docker run -- net = host projectdiscovery / interactsh - server : latest - domain A - ip vpsip - origin - url https :// web 訪問的域名
origin-url這個參數是給前端驗證用的,同源策略,建議設置成*,這樣的話本地也能用。

會自動幫你申請https證書,但是需要注意,每天只能三次,超過就只能http。
記得停掉這個服務
systemctl stop systemd - resolved

這樣就說明搭建成功了。
接下來是前端的搭建。
https://github.com/projectdiscovery/interactsh-web
將interactsh.com改為自己的域名就行。https要不要換成http取決于自己的服務是否配成功了https。
yarn yarn build
將靜態文件傳到github,這里推薦用github page作為Web服務,非常方便。
比如https://redtools.redteaming.net/

輔助腳本
最后再分享下我的Dnslog驗證腳本

https://github.com/XTeam-Wing/Py-Interactsh

VSole
網絡安全專家