-
Notifications
You must be signed in to change notification settings - Fork 847
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
Feature: optional flag to skip a host if it has a private IP address. #1408
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
$ go run . -u localhost,scanme.sh -eph -debug
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Current httpx version v1.3.6 (latest)
[DBG] Skipping private host localhost
[DBG] Failed 'localhost': target has a private ip and will only connect within same local network
[INF] Dumped HTTP request for https://scanme.sh
GET / HTTP/1.1
Host: scanme.sh
User-Agent: Mozilla/5.0 (compatible; YandexNews/4.0; +http://yandex.com/bots)
Accept-Charset: utf-8
Accept-Encoding: gzip
[INF] Dumped HTTP response for https://scanme.sh
HTTP/1.1 200 OK
Connection: close
Content-Length: 2
Content-Type: text/plain; charset=utf-8
Date: Thu, 19 Oct 2023 11:19:45 GMT
ok
https://scanme.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR @CodyCline, it works fine without port input, but it still passthrough when a port is specified in input or via port option.
./httpx -u localhost -sc -title -p 8080 -eph
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Current httpx version v1.3.5 (latest)
http://localhost:8080 [200] [Burp Suite Professional]
~/Github/httpx $ ./httpx -u localhost -sc -title -p 8080 -eph
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Current httpx version v1.3.5 (latest)
http://localhost:8080 [200] [Burp Suite Professional]
@ehsandeep nice catch! This happens because I was passing
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build fails is known and unrelated to this PR.
Thanks for clarifying. |
Implements feature request outlined in #1407.