projectdiscovery / interactsh

An OOB interaction gathering server and client library
https://app.interactsh.com
MIT License
3.34k stars 355 forks source link

Interactsh Server doesn't push DNS interactions to the client despite everything is working fine with http #979

Open thepoorhacker opened 4 days ago

thepoorhacker commented 4 days ago

Interactsh version:

1.2.0

Current Behavior:

It seems that the interactsh-server which I run locally doesn't push dns queries to the client. I know that because running the client without parameters creates a subdomain of oast.fun and it is pulling the dns records just fine from your interactsh-server, but it doesn't show the dns queries that come to my hosted server, I configured my server to be name server of my own domain and it seems to be working fine, but the only problem dns queries are not be pushed to the interactsh-client.

Expected Behavior:

interactsh-client pulls dns queries from the local hosted interactsh-server

Steps To Reproduce:

  1. run the server like this: ./interactsh-server -http-directory /root/interactsh -dsp /root/interactsh-storage -ds -wildcard -d interact.myowndomain.com -http-index /root/interactsh/banner.html -server-header "nginx/1.19.2" -disable-version -cidn 1 -cidl 1
  2. take the client token from above and feed it to this command: ./interactsh-client -server http://interact.rt.dnsabr.com -token your_token_goes_here -v -json -cidn 1 -cidl 1 3.check if it works: curl https://dededded.interact.myowndomain.com 4.you will see that it works and the client shows all http interactions but not the dns ones.

I hope this helps Regards

DOCTORBALISE commented 3 days ago

Yes I get the same issue. curl mydomain.com works but nslookup mydomain.com doesn't work.

thepoorhacker commented 11 hours ago

hello @DOCTORBALISE , I just found out that setting -cidn and -cidl to small values somehow is the problem (I might be wrong), I removed them altogether and I get everything to work fine even the http index page that I configured the server to use (and it wasn't using it for some reason) now is being used. I tried to figure out the minimal values for dns to work and I got this: -cidn 5 -cidl 4

I hope this helps Regards