Added -D flag for detecting DoH in the wild

Removed heuristic from CiscoVPN as it leads to false positives
This commit is contained in:
Luca Deri
2020-10-26 21:40:59 +01:00
parent 9873972acb
commit 948a906037
10 changed files with 174 additions and 53 deletions
+8 -6
View File
@@ -712,12 +712,14 @@ static int ndpi_search_tls_tcp(struct ndpi_detection_module_struct *ndpi_struct,
p = packet->payload, p_len = packet->payload_packet_len; /* Backup */
if(content_type == 0x14 /* Change Cipher Spec */) {
/*
Ignore Application Data up until change cipher
so in this case we reset the number of observed
TLS blocks
*/
flow->l4.tcp.tls.num_tls_blocks = 0;
if(ndpi_struct->skip_tls_blocks_until_change_cipher) {
/*
Ignore Application Data up until change cipher
so in this case we reset the number of observed
TLS blocks
*/
flow->l4.tcp.tls.num_tls_blocks = 0;
}
}
if((len > 9)