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

fix stdin parsing #2021

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

fix stdin parsing #2021

wants to merge 1 commit into from

Conversation

dogancanbakir
Copy link
Member

Closes #2020

@noaho
Copy link

noaho commented Dec 5, 2024

This pull request breaks -vhost-input for me, see #2020

@dogancanbakir
Copy link
Member Author

@noaho I'll update this PR -was gatherin more info on this feature.

@dogancanbakir dogancanbakir removed the request for review from ehsandeep December 5, 2024 13:57
@noaho
Copy link

noaho commented Dec 9, 2024

If it helps my understanding of the feature is this:

Sometimes you have hosts that you need to specify by IP, to do vhost discovery. (Send different Hosts: header for the same IP)

You might also want to process multiple hosts / vhosts in one session without starting up multiple HTTPX.

So you specify each vhost/IP pair on stdin like this:
cat inputfile.txt | httpx -vhost-input -title

You would of course have a input file with multiple vhosts you want to try on an IP (and multiple hosts you want to test) like this:

inputfile.txt

example.org,https://93.184.215.14
example2.org,https://93.184.215.14
www.google.com,https://74.125.68.147

This should give output like this:

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

                projectdiscovery.io

[INF] Current httpx version v1.6.9 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
https://93.184.215.14 [Example Domain]
https://74.125.68.147 [Google]
http://93.184.215.14 [404 - Not Found]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scheme https is forced for -vhost-input even when using -no-fallback-scheme
2 participants