JA3 debug improvements
This commit is contained in:
@@ -39,9 +39,11 @@ extern int is_version_with_var_int_transport_params(uint32_t version);
|
||||
|
||||
// #define DEBUG_TLS_MEMORY 1
|
||||
// #define DEBUG_TLS 1
|
||||
// #define DEBUG_TLS_BLOCKS 1
|
||||
// #define DEBUG_TLS_BLOCKS 1
|
||||
// #define DEBUG_CERTIFICATE_HASH
|
||||
|
||||
// #define DEBUG_JA3C 1
|
||||
|
||||
/* #define DEBUG_FINGERPRINT 1 */
|
||||
/* #define DEBUG_ENCRYPTED_SNI 1 */
|
||||
|
||||
@@ -1706,8 +1708,8 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
if(rc > 0 && ja3_str_len + rc < JA3_STR_LEN) ja3_str_len += rc;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_TLS
|
||||
printf("[JA3] Client: %s \n", ja3_str);
|
||||
#ifdef DEBUG_JA3C
|
||||
printf("[JA3+] Client: %s \n", ja3_str);
|
||||
#endif
|
||||
|
||||
ndpi_MD5Init(&ctx);
|
||||
@@ -1721,7 +1723,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
if(rc > 0) j += rc; else break;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_TLS
|
||||
#ifdef DEBUG_JA3C
|
||||
printf("[JA3] Client: %s \n", flow->protos.tls_quic_stun.tls_quic.ja3_client);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user