diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 1 | ||||
-rw-r--r-- | example/reader_util.c | 1 | ||||
-rw-r--r-- | example/reader_util.h | 5 |
3 files changed, 4 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index b26b146c8..ae79bc526 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1089,6 +1089,7 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa fprintf(out, "[< 1 sec]"); if(flow->telnet.username[0] != '\0') fprintf(out, "[Username: %s]", flow->telnet.username); + if(flow->telnet.password[0] != '\0') fprintf(out, "[Password: %s]", flow->telnet.password); if(flow->host_server_name[0] != '\0') fprintf(out, "[Host: %s]", flow->host_server_name); if(flow->info[0] != '\0') fprintf(out, "[%s]", flow->info); diff --git a/example/reader_util.c b/example/reader_util.c index d91c0ed5f..88d64126e 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -997,6 +997,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl } } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_TELNET)) { snprintf(flow->telnet.username, sizeof(flow->telnet.username), "%s", flow->ndpi_flow->protos.telnet.username); + snprintf(flow->telnet.password, sizeof(flow->telnet.password), "%s", flow->ndpi_flow->protos.telnet.password); } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_SSH)) { snprintf(flow->ssh_tls.client_info, sizeof(flow->ssh_tls.client_info), "%s", flow->ndpi_flow->protos.ssh.client_signature); diff --git a/example/reader_util.h b/example/reader_util.h index 775e519c1..99f8c5ada 100644 --- a/example/reader_util.h +++ b/example/reader_util.h @@ -201,14 +201,13 @@ typedef struct ndpi_flow_info { } http; struct { - char username[32]; + char username[32], password[32]; } telnet; void *src_id, *dst_id; struct ndpi_entropy entropy; - struct ndpi_entropy last_entropy; - + struct ndpi_entropy last_entropy; } ndpi_flow_info_t; |