Skip to content

http-index only serves the custom index file for the root path #1141

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

Open
rotemreiss opened this issue Apr 1, 2025 · 3 comments · May be fixed by #1142
Open

http-index only serves the custom index file for the root path #1141

rotemreiss opened this issue Apr 1, 2025 · 3 comments · May be fixed by #1142
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@rotemreiss
Copy link

Interactsh version:

1.2.4 (latest)

Current Behavior:

The following HTTP requests result with different responses (behavior):

  1. mycustomdomain.com or foo.mycustomdomain.com -> The http index file is returned
  2. mycustomdomain.com/script.js or foo.mycustomdomain.com/script.js -> Returns <html><head></head><body></body></html>
  3. foo.mycustomdomain.com/bar/script.js -> Returns <html><head></head><body></body></html>

Expected Behavior:

All requests should return the content of the http index file.

Steps To Reproduce:

  1. Run a server with interactsh-server -domain mycustomdomain.com -wildcard -skip-acme -hi script.js
  2. Run a client with interactsh-client -s mycustomdomain.com -token MYSECRETTOKEN -v
@rotemreiss rotemreiss added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Apr 1, 2025
@dogancanbakir
Copy link
Member

It seems you are looking for the -http-directory option, not the -http-index https://github.com/projectdiscovery/interactsh?tab=readme-ov-file#static-file-hosting.

@rotemreiss
Copy link
Author

@dogancanbakir, thanks for replying! -http-directory isn't what I'm looking for as it exposes a specific directory, while I want every HTTP interaction (regardless of the path) always to return the content of -http-index.

@dogancanbakir
Copy link
Member

Okay, got it now! And yes you're right about it; it should work that way. We'll look into it. Thanks!

@ehsandeep ehsandeep linked a pull request Apr 1, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants