Skip to content

Commit 9d89d98

Browse files
committed
Drop unused fields and HeartBleedLog handling from ztls.go. Update module dependencies in go.mod and go.sum.
1 parent 8411c03 commit 9d89d98

3 files changed

Lines changed: 39 additions & 86 deletions

File tree

crypto/ztls.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type ZTLSData struct {
2323
FingerprintSHA256OpenSSL string `json:"fingerprint_sha256_openssl,omitempty"`
2424
ClientHello []byte `json:"client_hello,omitempty"`
2525
HandshakeLog []byte `json:"handshake_log,omitempty"`
26-
HeartBleedLog []byte `json:"heartbleed_log,omitempty"`
26+
// HeartBleedLog []byte `json:"heartbleed_log,omitempty"`
2727
}
2828

2929
// ZTLSGrab fills the ZTLSData
@@ -50,15 +50,15 @@ func ZTLSGrab(conn *ztls.Conn) *ZTLSData {
5050
ztlsdata.FingerprintSHA256 = asHex(fingerprintSHA256)
5151
ztlsdata.FingerprintSHA256OpenSSL = asOpenSSL(fingerprintSHA256)
5252
}
53-
if clienthello, err := json.Marshal(conn.ClientHelloRaw()); err == nil {
53+
if clienthello, err := json.Marshal(conn.GetHandshakeLog().ClientHello); err == nil {
5454
ztlsdata.ClientHello = clienthello
5555
}
5656
if handshakeLog, err := json.Marshal(conn.GetHandshakeLog()); err == nil {
5757
ztlsdata.HandshakeLog = handshakeLog
5858
}
59-
if heartBleedLog, err := json.Marshal(conn.GetHeartbleedLog()); err == nil {
60-
ztlsdata.HeartBleedLog = heartBleedLog
61-
}
59+
//if heartBleedLog, err := json.Marshal(conn.; err == nil {
60+
// ztlsdata.HeartBleedLog = heartBleedLog
61+
//}
6262
return &ztlsdata
6363
}
6464
return nil

go.mod

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ require (
3535
github.com/stretchr/testify v1.11.1
3636
github.com/tidwall/gjson v1.18.0
3737
github.com/wasilibs/go-re2 v1.10.0
38-
github.com/zmap/zcrypto v0.0.0-20230422215203-9a665e1e9968
38+
github.com/zmap/zcrypto v0.0.0-20260107002751-aab071ef832a
3939
go.uber.org/multierr v1.11.0
4040
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8
4141
golang.org/x/oauth2 v0.27.0
42-
golang.org/x/sync v0.18.0
43-
golang.org/x/sys v0.38.0
44-
golang.org/x/text v0.31.0
42+
golang.org/x/sync v0.19.0
43+
golang.org/x/sys v0.39.0
44+
golang.org/x/text v0.32.0
4545
gopkg.in/yaml.v3 v3.0.1
4646
)
4747

@@ -124,12 +124,11 @@ require (
124124
github.com/projectdiscovery/gologger v1.1.64
125125
github.com/projectdiscovery/hmap v0.0.98
126126
github.com/projectdiscovery/retryablehttp-go v1.1.1
127-
github.com/weppos/publicsuffix-go v0.40.3-0.20250408071509-6074bbe7fd39
127+
github.com/weppos/publicsuffix-go v0.50.3-0.20260104170930-90713dec78f2
128128
github.com/zcalusic/sysinfo v1.0.2
129-
github.com/zmap/rc2 v0.0.0-20190804163417-abaa70531248 // indirect
130-
golang.org/x/crypto v0.45.0 // indirect
131-
golang.org/x/mod v0.29.0 // indirect
132-
golang.org/x/net v0.47.0
133-
golang.org/x/term v0.37.0
134-
golang.org/x/tools v0.38.0
129+
golang.org/x/crypto v0.46.0 // indirect
130+
golang.org/x/mod v0.30.0 // indirect
131+
golang.org/x/net v0.48.0
132+
golang.org/x/term v0.38.0
133+
golang.org/x/tools v0.39.0
135134
)

0 commit comments

Comments
 (0)