Added flow risk score

This commit is contained in:
Luca Deri
2021-05-18 21:05:47 +02:00
parent 86f3c29d03
commit 732bcecd17
90 changed files with 1385 additions and 1383 deletions
+3 -1
View File
@@ -1444,8 +1444,10 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa
fprintf(out, "** %s **", ndpi_risk2str(i));
fprintf(out, "]");
}
fprintf(out, "[Risk Score: %u]", ndpi_risk2score(flow->risk));
}
if(flow->ssh_tls.ssl_version != 0) fprintf(out, "[%s]", ndpi_ssl_version2str(flow->ndpi_flow, flow->ssh_tls.ssl_version, &known_tls));
if(flow->ssh_tls.client_requested_server_name[0] != '\0') fprintf(out, "[Client: %s]", flow->ssh_tls.client_requested_server_name);
if(flow->ssh_tls.client_hassh[0] != '\0') fprintf(out, "[HASSH-C: %s]", flow->ssh_tls.client_hassh);