WAF cc2尝试使用指纹统计方法

This commit is contained in:
刘祥超
2023-03-08 16:59:44 +08:00
parent d4944c236f
commit 5770d43230
8 changed files with 103 additions and 1 deletions

View File

@@ -68,3 +68,17 @@ func (this *ClientTLSConn) SetIsPersistent(isPersistent bool) {
}
}
}
func (this *ClientTLSConn) Fingerprint() []byte {
tlsConn, ok := this.rawConn.(*tls.Conn)
if ok {
var rawConn = tlsConn.NetConn()
if rawConn != nil {
clientConn, ok := rawConn.(*ClientConn)
if ok {
return clientConn.fingerprint
}
}
}
return nil
}