Extend protocols support (#1422)
Add detection of AccuWeather site/app and Google Classroom. Improve detection of Azure, Zattoo, Whatsapp, MQTT and LDAP. Fix some RX false positives. Fix some "Uncommon TLS ALPN"-risk false positives. Fix "confidence" value for some Zoom/Torrent classifications. Minor fix in Lua script for Wireshark extcap. Update .gitignore file. Let GitHub correctly detect the language type of *.inc files. Zattoo example has been provided by @subhajit-cdot in #1148.
This commit is contained in:
@@ -30,9 +30,22 @@ void ndpi_search_whatsapp(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
0x45, 0x44, 0x0, 0x01, 0x0, 0x0, 0x02, 0x08,
|
||||
0x0, 0x57, 0x41, 0x02, 0x0, 0x0, 0x0
|
||||
};
|
||||
static u_int8_t whatsapp_old_sequence[] = {
|
||||
0x57, 0x41, 0x01, 0x05
|
||||
};
|
||||
|
||||
NDPI_LOG_DBG(ndpi_struct, "search WhatsApp\n");
|
||||
|
||||
/* This is a very old sequence (2015?) but we still have it in our unit tests.
|
||||
Try to detect it, without too much effort... */
|
||||
if(flow->l4.tcp.wa_matched_so_far == 0 &&
|
||||
packet->payload_packet_len > sizeof(whatsapp_old_sequence) &&
|
||||
memcmp(packet->payload, whatsapp_old_sequence, sizeof(whatsapp_old_sequence)) == 0) {
|
||||
NDPI_LOG_INFO(ndpi_struct, "found WhatsApp (old sequence)\n");
|
||||
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_WHATSAPP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
|
||||
return;
|
||||
}
|
||||
|
||||
if(flow->l4.tcp.wa_matched_so_far < sizeof(whatsapp_sequence)) {
|
||||
size_t match_len = sizeof(whatsapp_sequence) - flow->l4.tcp.wa_matched_so_far;
|
||||
if(packet->payload_packet_len < match_len)
|
||||
|
||||
Reference in New Issue
Block a user