-
Notifications
You must be signed in to change notification settings - Fork 6
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
make response work with utls #7
Comments
The |
this seems to fix it: package tlshacks
func prepend(raw []byte) []byte {
var data []byte
data = append(data, 22) // record type
data = append(data, 0, 0) // record version
data = append(data, 0, 0) // record length
return append(data, raw...)
} |
for another workaround, you can use this with MITM Proxy: import mitmproxy
import logging
import base64
def tls_clienthello(data: mitmproxy.tls.ClientHelloData):
hello = data.client_hello.raw_bytes()
logging.info(base64.b64encode(hello)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
currently the response from https://tlshello.agwa.name cannot be used with uTLS. with this:
https://pkg.go.dev/github.com/refraction-networking/utls#ClientHelloSpec.FromRaw
it fails because The data should be the full tls record, including the record type/version/length header as well as the handshake type/length/version header
and with these:
https://pkg.go.dev/github.com/refraction-networking/utls#ClientHelloSpec.ImportTLSClientHello
https://pkg.go.dev/github.com/refraction-networking/utls#ClientHelloSpec.ImportTLSClientHelloFromJSON
it fails because the response is a different format
The text was updated successfully, but these errors were encountered: