@@ -1867,6 +1867,9 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa
18671867 if (flow -> ssh_tls .ja3_client [0 ] != '\0' ) fprintf (out , "[JA3C: %s%s]" , flow -> ssh_tls .ja3_client ,
18681868 print_cipher (flow -> ssh_tls .client_unsafe_cipher ));
18691869
1870+ if (flow -> ssh_tls .ja4_client [0 ] != '\0' ) fprintf (out , "[JA4: %s%s]" , flow -> ssh_tls .ja4_client ,
1871+ print_cipher (flow -> ssh_tls .client_unsafe_cipher ));
1872+
18701873 if (flow -> ssh_tls .server_info [0 ] != '\0' ) fprintf (out , "[Server: %s]" , flow -> ssh_tls .server_info );
18711874
18721875 if (flow -> ssh_tls .server_names ) fprintf (out , "[ServerNames: %s]" , flow -> ssh_tls .server_names );
@@ -2919,7 +2922,7 @@ static void printFlowsStats() {
29192922 ndpi_ja3_info * info_of_element = NULL ;
29202923 ndpi_host_ja3_fingerprints * tmp = NULL ;
29212924 ndpi_ja3_info * tmp2 = NULL ;
2922- unsigned int num_ja3_client ;
2925+ unsigned int num_ja3_ja4_client ;
29232926 unsigned int num_ja3_server ;
29242927
29252928 fprintf (out , "\n" );
@@ -3085,14 +3088,14 @@ static void printFlowsStats() {
30853088
30863089 for (ja3ByHost_element = ja3ByHostsHashT ; ja3ByHost_element != NULL ;
30873090 ja3ByHost_element = ja3ByHost_element -> hh .next ) {
3088- num_ja3_client = HASH_COUNT (ja3ByHost_element -> host_client_info_hasht );
3091+ num_ja3_ja4_client = HASH_COUNT (ja3ByHost_element -> host_client_info_hasht );
30893092 num_ja3_server = HASH_COUNT (ja3ByHost_element -> host_server_info_hasht );
30903093
3091- if (num_ja3_client > 0 ) {
3094+ if (num_ja3_ja4_client > 0 ) {
30923095 fprintf (out , "\t%d\t %-24s \t %-7u\n" ,
30933096 i ,
30943097 ja3ByHost_element -> ip_string ,
3095- num_ja3_client
3098+ num_ja3_ja4_client
30963099 );
30973100 i ++ ;
30983101 }
@@ -3117,10 +3120,10 @@ static void printFlowsStats() {
31173120 //ja3ByHost_element: element of ja3ByHostsHashT
31183121 //info_of_element: element of the inner hash table of ja3ByHost_element
31193122 HASH_ITER (hh , ja3ByHostsHashT , ja3ByHost_element , tmp ) {
3120- num_ja3_client = HASH_COUNT (ja3ByHost_element -> host_client_info_hasht );
3123+ num_ja3_ja4_client = HASH_COUNT (ja3ByHost_element -> host_client_info_hasht );
31213124 num_ja3_server = HASH_COUNT (ja3ByHost_element -> host_server_info_hasht );
31223125 againstRepeat = 0 ;
3123- if (num_ja3_client > 0 ) {
3126+ if (num_ja3_ja4_client > 0 ) {
31243127 HASH_ITER (hh , ja3ByHost_element -> host_client_info_hasht , info_of_element , tmp2 ) {
31253128 fprintf (out , "\t%-7d %-24s %s %s\n" ,
31263129 i ,
0 commit comments