extract gmt_unix_time from client random
This commit is contained in:
parent
0092ed6dd0
commit
dc53b5fa76
|
@ -8,6 +8,7 @@ package main
|
|||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/binary"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"golang.org/x/crypto/cryptobyte"
|
||||
|
@ -197,6 +198,7 @@ type extension struct {
|
|||
|
||||
type highlights struct {
|
||||
//SupportedTLSVersions []uint16
|
||||
GmtUnixTime uint32 `json:"gmt_unix_time"` // first 4 bytes of client random
|
||||
SecureRenegotiationSupport bool `json:"secure_renegotiation_support"`
|
||||
OcspStaplingSupport bool `json:"ocsp_stapling_support"`
|
||||
SctSupport bool `json:"sct_support"`
|
||||
|
@ -231,6 +233,8 @@ func (m *clientHelloMsg) unmarshal(data []byte) bool {
|
|||
return false
|
||||
}
|
||||
m.Random = random
|
||||
m.Highlights.GmtUnixTime = binary.BigEndian.Uint32(random[0:4])
|
||||
|
||||
m.SessionID = sessionID
|
||||
|
||||
var cipherSuites cryptobyte.String
|
||||
|
|
|
@ -84,7 +84,7 @@ a:active {color:#FFF;}
|
|||
<p>This test:
|
||||
<ul>
|
||||
<li>reflects the complete Client Hello message, preserving the order in which TLS parameters and extensions are sent;</li>
|
||||
<li>can be used to check for TLS privacy pitfalls (<a href="https://svs.informatik.uni-hamburg.de/publications/2018/2018-12-06-Sy-ACSAC-Tracking_Users_across_the_Web_via_TLS_Session_Resumption.pdf">session resumption</a>, <a href="https://tlsfingerprint.io/">TLS fingerprinting</a>, <a href="https://datatracker.ietf.org/doc/html/rfc5246/#section-7.4.1.2">system time exposure</a>);</li>
|
||||
<li>can be used to check for TLS privacy pitfalls (<a href="https://svs.informatik.uni-hamburg.de/publications/2018/2018-12-06-Sy-ACSAC-Tracking_Users_across_the_Web_via_TLS_Session_Resumption.pdf">session resumption</a>, <a href="https://tlsfingerprint.io/">TLS fingerprinting</a>, <a href="https://datatracker.ietf.org/doc/html/draft-mathewson-no-gmtunixtime">system time exposure</a>);</li>
|
||||
<li>supports both HTTP and <a href="https://gemini.circumlunar.space/">Gemini</a>;</li>
|
||||
<li>is <a href="https://www.gnu.org/philosophy/free-sw.en.html">free as in freedom</a> and trivial to self-host.</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue