aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/teamviewer.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-04-11 14:42:27 +0200
committerLuca Deri <deri@ntop.org>2021-04-11 14:42:27 +0200
commitbf318e0b86ecfe88db3c15ed7ae285b43e51c304 (patch)
treed78a0f58151855e15cf6c0cc23f09b53df04f718 /src/lib/protocols/teamviewer.c
parentceb98a3f9c7987820da3998f6c80a5bf9bd65743 (diff)
Added NDPI_DESKTOP_OR_FILE_SHARING_SESSION flow risk
Diffstat (limited to 'src/lib/protocols/teamviewer.c')
-rw-r--r--src/lib/protocols/teamviewer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/protocols/teamviewer.c b/src/lib/protocols/teamviewer.c
index 5c221fada..97a8b3c1e 100644
--- a/src/lib/protocols/teamviewer.c
+++ b/src/lib/protocols/teamviewer.c
@@ -72,6 +72,7 @@ void ndpi_search_teamview(struct ndpi_detection_module_struct *ndpi_struct, stru
if (flow->l4.udp.teamviewer_stage == 4 ||
packet->udp->dest == ntohs(5938) || packet->udp->source == ntohs(5938)) {
ndpi_int_teamview_add_connection(ndpi_struct, flow);
+ ndpi_set_risk(flow, NDPI_DESKTOP_OR_FILE_SHARING_SESSION); /* Remote assistance (UDP only) */
}
return;
}
@@ -90,8 +91,10 @@ void ndpi_search_teamview(struct ndpi_detection_module_struct *ndpi_struct, stru
else if (flow->l4.udp.teamviewer_stage) {
if (packet->payload[0] == 0x11 && packet->payload[1] == 0x30) {
flow->l4.udp.teamviewer_stage++;
- if (flow->l4.udp.teamviewer_stage == 4)
+ if (flow->l4.udp.teamviewer_stage == 4) {
ndpi_int_teamview_add_connection(ndpi_struct, flow);
+ ndpi_set_risk(flow, NDPI_DESKTOP_OR_FILE_SHARING_SESSION); /* Remote assistance (UDP only) */
+ }
}
return;
}