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

How can I scan http first? #15

Closed
imlonghao opened this issue Jun 5, 2020 · 4 comments
Closed

How can I scan http first? #15

imlonghao opened this issue Jun 5, 2020 · 4 comments
Labels
question Further information is requested

Comments

@imlonghao
Copy link

Hello,

I am trying to scan some websites and detect its title and status code.

Those website only serve at http, even it have valid SSL certificate (*.example.com) but it is a Nginx default page for https.

I fed httpx with list of domains starting with http://, but currently httpx will try https first, if fail, fallback to http.

How can I force httpx to scan the list in http protocol without auto upgrade to https?

Thanks in advance.

@ehsandeep
Copy link
Member

Hey @imlonghao,

You can make use of ports if you want to force to probe HTTP only.

httpx -ports 80

@ehsandeep ehsandeep added the question Further information is requested label Jun 5, 2020
@imlonghao
Copy link
Author

What if I want to scan some domain in http while some in https?

list.txt

http://a.example.com
https://b.example.com
http://c.example.com

@ehsandeep
Copy link
Member

Hey, that's how it works on default run, it checks for https first, if it doesn't work it checks for http, if you want both, you can do -ports 80,443

also if you feed input like below, you don't have to deal with this manually and as httpx will handle it on its own.

a.example.com
b.example.com
c.example.com

@ehsandeep
Copy link
Member

please drop additonal comments for more questions, closing this for now.

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

No branches or pull requests

2 participants