zmap / zgrab2

Fast Go Application Scanner
Other
1.72k stars 294 forks source link

Handshake failure in http module #379

Open rony0724 opened 1 year ago

rony0724 commented 1 year ago

echo 20.49.235.125 | ./zgrab http -p 443 --max-redirects=10

this ip is using self signed certificate

Output {"ip":"20.49.235.125","data":{"http":{"status":"unknown-error","protocol":"http","result":{"redirect_response_chain":[{"status_line":"307 Temporary Redirect","status_code":307,"protocol":{"name":"HTTP/1.1","major":1,"minor":1},"headers":{"content_length":["62"],"content_type":["text/html; charset=utf-8"],"date":["Mon, 10 Apr 2023 17:36:57 GMT"],"location":["https://20.49.235.125:443/"]},"body":"\u003ca href=\"https://20.49.235.125:443/\"\u003eTemporary Redirect\u003c/a\u003e.\n\n","body_sha256":"7bade8a3e670c4e7d091b9f6509e2a873b56cede45b92780fe35e54f5bdd5c35","content_length":62,"request":{"url":{"scheme":"http","host":"20.49.235.125:443","path":"/"},"method":"GET","headers":{"accept":["/"],"user_agent":["Mozilla/5.0 zgrab/0.x"]},"host":"20.49.235.125:443"}}]},"timestamp":"2023-04-10T17:36:57Z","error":"remote error: handshake failure"}}}

mzpqnxow commented 1 year ago

echo 20.49.235.125 | ./zgrab http -p 443 --max-redirects=10

this ip is using self signed certificate

Output

{"ip":"20.49.235.125","data":{"http":{"status":"unknown-error","protocol":"http","result":{"redirect_response_chain":[{"status_line":"307 Temporary Redirect","status_code":307,"protocol":{"name":"HTTP/1.1","major":1,"minor":1},"headers":{"content_length":["62"],"content_type":["text/html; charset=utf-8"],"date":["Mon, 10 Apr 2023 17:36:57 GMT"],"location":["https://20.49.235.125:443/"]},"body":"\u003ca href=\"https://20.49.235.125:443/\"\u003eTemporary Redirect\u003c/a\u003e.\n\n","body_sha256":"7bade8a3e670c4e7d091b9f6509e2a873b56cede45b92780fe35e54f5bdd5c35","content_length":62,"request":{"url":{"scheme":"http","host":"20.49.235.125:443","path":"/"},"method":"GET","headers":{"accept":["/"],"user_agent":["Mozilla/5.0 zgrab/0.x"]},"host":"20.49.235.125:443"}}]},"timestamp":"2023-04-10T17:36:57Z","error":"remote error: handshake failure"}}}

Have you tried using the portable ciphers flag? That fixes most handshake failures in my experience

mzpqnxow commented 9 months ago

This can probably be closed...