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

feat: Convert raw bytes or tlsfingerprint record to ClientHelloSpec #168

Merged
merged 10 commits into from
Mar 9, 2023
Merged

Conversation

gaukas
Copy link
Contributor

@gaukas gaukas commented Mar 3, 2023

Partially implements #164.

  • Raw Byte to ClientHelloSpec (revisitedFingerprinter)
  • TLSFingerprint.io parsed ClientHello to ClientHelloSpec (see https://client.tlsfingerprint.io/ for example)
  • JSON to ClientHelloSpec
  • Update TLSFingerprint.io

Integrated commits/changes from #148 to prevent merge conflict on #148. Merging this PR should close #148.

Will automatically add "h2" to ALPS and write to log when GREASE extension is imported in `ImportTLSClientHello()`
ReadCompressionMethods didn't advance the s and fails reading extensions
`helper.Uint8to16()` now calls `(*cryptobyte.String).ReadUint16()`
@gaukas gaukas linked an issue Mar 3, 2023 that may be closed by this pull request
gaukas and others added 4 commits March 3, 2023 12:31
updated fingerprinter test to test with PreSharedKey extension
It is a Fake extension since `crypto/tls` doesn't really implement PSK-based resumption and neither do we.
Adopted from #148.

Co-Authored-By: gfw-report <gfw.report@protonmail.com>
And reordered `fakeExtensionDelegatedCredentials`.

The new `Fingerprinter` is expected to account for the `fakeExtensionEncryptThenMAC` using a `GenericExtension` when `allowBluntMimicry` is set.

Co-Authored-By: gfw-report <gfw.report@protonmail.com>
u_common.go Outdated Show resolved Hide resolved
u_common.go Outdated Show resolved Hide resolved
- Removed all presence of keepPSK flag.
- Added check before using the field of a map.
@gaukas gaukas merged commit dae72ad into refraction-networking:master Mar 9, 2023
@gaukas gaukas deleted the byte-to-chs branch March 30, 2023 15:16
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

Successfully merging this pull request may close these issues.

implement TLSfingerprint ID to ClientHelloSpec support
2 participants