projectdiscovery / httpx

httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.
https://docs.projectdiscovery.io/tools/httpx
MIT License
7.53k stars 822 forks source link

ztls not work #1859

Closed iuliu8899 closed 1 month ago

iuliu8899 commented 1 month ago

httpx version: 1.6.7

Current Behavior:

image

Expected Behavior:

it seems the r.Request.Context() done when DialTLS ing. https://github.com/projectdiscovery/httpx/blob/5f8e5d0dc5df536fec7cc6189a3e54a6d3a9e60e/common/httpx/tls.go#L65-L68

Steps To Reproduce:

httpx -u google.com -ztls -tls-grab -json -silent | jq .tls

Anything else:

btw, TLSGrab func (not ZTLSGrab) does not set Serial number of the cert...

ehsandeep commented 1 month ago

This is now fixed in latest release - https://github.com/projectdiscovery/httpx/releases/tag/v1.6.8