diff options
author | Luca <deri@ntop.org> | 2019-12-29 10:45:42 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-12-29 10:45:42 +0100 |
commit | 9fb3a57a7182432f89248fc65e3fe59c2cbf1963 (patch) | |
tree | f2bdbf848ace29079144943b44b8e1a7180912a0 /example | |
parent | 257ec7cc5f372d26cba1a7178589a085116f54b0 (diff) |
Kerberos fixes
Minor TLS cleanup
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 4 | ||||
-rw-r--r-- | example/reader_util.c | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 6a52cc953..77b1a3591 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -602,7 +602,7 @@ void printCSVHeader() { fprintf(csv_fp, "client_info,server_info,"); fprintf(csv_fp, "tls_version,ja3c,tls_client_unsafe,"); fprintf(csv_fp, "ja3s,tls_server_unsafe,"); - fprintf(csv_fp, "ssh_client_hassh,ssh_server_hassh"); + fprintf(csv_fp, "ssh_client_hassh,ssh_server_hassh,flow_info"); /* Joy */ if(enable_joy_stats) { @@ -1099,6 +1099,8 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa (flow->ssh_tls.client_hassh[0] != '\0') ? flow->ssh_tls.client_hassh : "", (flow->ssh_tls.server_hassh[0] != '\0') ? flow->ssh_tls.server_hassh : "" ); + + fprintf(csv_fp, ",%s", flow->info); } if((verbose != 1) && (verbose != 2)) { diff --git a/example/reader_util.c b/example/reader_util.c index 1d19e8b41..a1a712837 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -993,6 +993,15 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl } else if(flow->ndpi_flow->protos.kerberos.domain[0] != '\0') snprintf(flow->info, sizeof(flow->info), "%s", flow->ndpi_flow->protos.kerberos.domain); + +#if 0 + if(flow->info[0] != '\0') + printf("->> (%d) [%s][%s][%s]<<--\n", + htons(flow->src_port), + flow->ndpi_flow->protos.kerberos.domain, + flow->ndpi_flow->protos.kerberos.hostname, + flow->ndpi_flow->protos.kerberos.username); +#endif } /* HTTP */ else if((flow->detected_protocol.master_protocol == NDPI_PROTOCOL_HTTP) |