httpx
httpx copied to clipboard
if host not exist, nfs is ignored if we use port switch
httpx version:
v1.2.9
Current Behavior:
if use -ports xxx with -nfs , httpx print two dump http request message
echo https://123.google.com/ | httpx -duc -probe -sc -debug-req -nfs -ports 443
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Dumped HTTP request for https://123.google.com:443
GET / HTTP/1.1
Host: 123.google.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Accept-Charset: utf-8
Accept-Encoding: gzip
[INF] Dumped HTTP request for http://123.google.com:443
GET / HTTP/1.1
Host: 123.google.com:443
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2b) Gecko/20021001 Phoenix/0.2
Accept-Charset: utf-8
Accept-Encoding: gzip
http://123.google.com:443 [FAILED]
Expected Behavior:
but if not use -ports xxx, show only one mwssage
echo https://123.google.com/ | httpx -duc -probe -sc -debug-req -nfs
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Dumped HTTP request for https://123.google.com/
GET / HTTP/1.1
Host: 123.google.com
User-Agent: Mozilla/5.0 (Linux; Android 12; SM-G970U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
Accept-Charset: utf-8
Accept-Encoding: gzip
https://123.google.com/ [FAILED]
Steps To Reproduce:
Anything else:

