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

Handshake failure in http module #379

Open
rony0724 opened this issue Apr 10, 2023 · 3 comments
Open

Handshake failure in http module #379

rony0724 opened this issue Apr 10, 2023 · 3 comments

Comments

@rony0724
Copy link

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
Copy link
Contributor

mzpqnxow commented Sep 7, 2023

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
Copy link
Contributor

mzpqnxow commented Dec 5, 2023

This can probably be closed...

@mzpqnxow
Copy link
Contributor

@rony0724 did use the portable ciphers option resolve your issue?

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

No branches or pull requests

2 participants