aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/telnet.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-10-19 08:43:58 +0200
committerLuca Deri <deri@ntop.org>2021-10-19 08:44:29 +0200
commit06f13fd2de45237b0643b2a26c76f57967b8e93e (patch)
tree6f2af3ec8d63d44f4ee0dbf431b96df5b960bba5 /src/lib/protocols/telnet.c
parented51987e3a4838dd9aef27dfab2c0651f2f52836 (diff)
Added clertext alert with telnet
Diffstat (limited to 'src/lib/protocols/telnet.c')
-rw-r--r--src/lib/protocols/telnet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/protocols/telnet.c b/src/lib/protocols/telnet.c
index bdf695687..1d6215c69 100644
--- a/src/lib/protocols/telnet.c
+++ b/src/lib/protocols/telnet.c
@@ -63,6 +63,7 @@ static int search_telnet_again(struct ndpi_detection_module_struct *ndpi_struct,
return(1);
flow->protos.telnet.password_detected = 1;
+ ndpi_set_risk(ndpi_struct, flow, NDPI_CLEAR_TEXT_CREDENTIALS);
flow->protos.telnet.password[flow->protos.telnet.character_id] = '\0';
return(0);
}
@@ -89,6 +90,7 @@ static int search_telnet_again(struct ndpi_detection_module_struct *ndpi_struct,
if(packet->payload[0] == '\r') {
flow->protos.telnet.username_detected = 1;
+ ndpi_set_risk(ndpi_struct, flow, NDPI_CLEAR_TEXT_CREDENTIALS);
flow->protos.telnet.username[flow->protos.telnet.character_id] = '\0';
flow->protos.telnet.character_id = 0;
return(1);