Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to my custom interactsh server #135

Closed
JoshuaMart opened this issue Dec 18, 2021 · 11 comments
Closed

Can't connect to my custom interactsh server #135

JoshuaMart opened this issue Dec 18, 2021 · 11 comments
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@JoshuaMart
Copy link

JoshuaMart commented Dec 18, 2021

Hi,
Following the instructions I set up my own Interactsh server, however after starting it, I can't connect to it with the interactsh client.

Server running :
interactsh

Attempt to connect with the client :
interact2

curl

And I think my DNS configuration is good because if I run a custom DNS that I wrote in Ruby, it responds well to queries
dns

Regards

@JoshuaMart JoshuaMart added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Dec 18, 2021
@ehsandeep
Copy link
Member

@JoshuaMart this might be related to ongoing issue related to SSL server and we are tracking it here - #127, most probably the HTTPS server is not running in your self-hosted instance as well, using -server http://DOMAIN.com should work.

@JoshuaMart
Copy link
Author

Hi,
If you look the second screenshot, I've tried with http and https :)

Regards

@user123bvtrbrtntr
Copy link

Hi, I have the same issue. Is there any debugging tips or information I could provide to facilitate the process?
The only difference in my installation process is that I used an Azure VM instead of DigitalOcean droplet.

@EndPositive
Copy link

I'm having the same issue. ZAP's interactsh client does work, so it seems to be an issue in the client and not the server.

Their register code is here: https://github.com/zaproxy/zap-extensions/blob/9394dabee50bfbcdf92af232a44c1b93652aa52b/addOns/oast/src/main/java/org/zaproxy/addon/oast/services/interactsh/InteractshService.java#L148

@ehsandeep
Copy link
Member

I'm having the same issue. ZAP's interactsh client does work, so it seems to be an issue in the client and not the server.

Their register code is here: https://github.com/zaproxy/zap-extensions/blob/9394dabee50bfbcdf92af232a44c1b93652aa52b/addOns/oast/src/main/java/org/zaproxy/addon/oast/services/interactsh/InteractshService.java#L148

this might be related to interactsh server in use at https://github.com/zaproxy/zap-extensions/blob/3261bf26c3fb23796441f1a59d79c47f764301cb/addOns/oast/src/main/java/org/zaproxy/addon/oast/services/interactsh/InteractshParam.java#L54, currently, interactsh.com is down due to known issue we are tracking here #127 and interact.sh is used across all projects.

@EndPositive
Copy link

No, I'm using a privately hosted interactsh server in ZAP as well. In ZAP is does work, in Nuclei / interactsh-client it does not. I'll add a debugger to interactsh-client locally and inform you with better req/resp traces.

@EndPositive
Copy link

@ehsandeep you can reproduce the problem on the public interactsh server as well:

interactsh-client -server https://interact.sh/

Note the / at the end. The request will be made using https://interact.sh//register. The response is:

{"error":"could not decode json body: EOF"}

@EndPositive
Copy link

EndPositive commented Dec 20, 2021

The issue propagates to Nuclei, so starting nuclei without the trailing / is a workaround.

EDIT: Looking at the OP again, not sure if this is the same issue as originally stated..

@JoshuaMart
Copy link
Author

I managed to set up in a different way

@EndPositive That's actually another problem I think :)

@ehsandeep
Copy link
Member

@JoshuaMart is it possible to share the root cause of this issue that you identified/fixed it eventually? information might be helpful as other users are facing similar issues #146

@JoshuaMart
Copy link
Author

JoshuaMart commented Dec 27, 2021

As I did not succeed in following the steps described and after several tries, I can't get a configuration without subdomain, by modifying the NS of the domain so I've set up a sub-domain and there it work.

So instead of having for example on your domain DNS configuration :

ns1.domain.tld NS server_ip

I have the following on my DNS zone configuration :

interact.domain.tld NS ns1.interact.domain.tld
ns1.interact.domain.tld A server_ip

image

And with this configuration it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

4 participants