← 返回列表

Interactsh搭建DNSLog服务

单站 RedTeaming 发布 Tue, 07 Dec 2021 21:44:00 +0800 入库 2026-11-18T06:10:09

原创 RedTeamWing 2021-12-07 21:44

你好的时候,我不用在你身边。

因为觉得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上执行:

  1. docker run --net=host projectdiscovery/interactsh-server:latest -domain A -ip vpsip -origin-url https://web访问的域名

origin-url这个参数是给前端验证用的,同源策略,建议设置成*,这样的话本地也能用。

会自动帮你申请https证书,但是需要注意,每天只能三次,超过就只能http。

记得停掉这个服务

  1. systemctl stop systemd-resolved

这样就说明搭建成功了。

接下来是前端的搭建。

https://github.com/projectdiscovery/interactsh-web

将interactsh.com改为自己的域名就行。https要不要换成http取决于自己的服务是否配成功了https。

  1. yarn
  2. yarn build

将静态文件传到github,这里推荐用github page作为Web服务,非常方便。

比如https://redtools.redteaming.net/

最后再分享下我的Dnslog验证脚本

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

## MISC

分享下不老奇事里面郭小鲁给苏的信,很遗憾,这部电影我没去电影院看。

版权原因,只能分享图片了。

绷不住了!

原文链接:https://mp.weixin.qq.com/s?__biz=MzUyMDgzMDMyMg==&mid=2247484378&idx=1&sn=d2b64b596b9f2b5cbc6c287292a72406