Implemented TLS Certificate Sibject matching

Improved AnyDesk detection
This commit is contained in:
Luca Deri
2021-02-22 22:37:33 +01:00
parent a21ad2fbe4
commit fc3db8f169
14 changed files with 211 additions and 141 deletions
+3 -3
View File
@@ -273,7 +273,7 @@ void ndpiCheckHostStringMatch(char *testChar) {
return;
ndpi_str = ndpi_init_detection_module(ndpi_no_prefs);
ndpi_finalize_initalization(ndpi_str);
ndpi_finalize_initialization(ndpi_str);
// Display ALL Host strings ie host_match[] ?
// void ac_automata_display (AC_AUTOMATA_t * thiz, char repcast);
@@ -2060,7 +2060,7 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
if(_riskyDomainFilePath)
ndpi_load_risk_domain_file(ndpi_thread_info[thread_id].workflow->ndpi_struct, _riskyDomainFilePath);
ndpi_finalize_initalization(ndpi_thread_info[thread_id].workflow->ndpi_struct);
ndpi_finalize_initialization(ndpi_thread_info[thread_id].workflow->ndpi_struct);
if(enable_doh_dot_detection)
ndpi_set_detection_preferences(ndpi_thread_info[thread_id].workflow->ndpi_struct, ndpi_pref_enable_tls_block_dissection, 1);
@@ -3505,7 +3505,7 @@ static void dgaUnitTest() {
NDPI_BITMASK_SET_ALL(all);
ndpi_set_protocol_detection_bitmask2(ndpi_str, &all);
ndpi_finalize_initalization(ndpi_str);
ndpi_finalize_initialization(ndpi_str);
assert(ndpi_str != NULL);
+1 -1
View File
@@ -166,7 +166,7 @@ static struct nDPI_workflow * init_workflow(char const * const file_or_device)
NDPI_PROTOCOL_BITMASK protos;
NDPI_BITMASK_SET_ALL(protos);
ndpi_set_protocol_detection_bitmask2(workflow->ndpi_struct, &protos);
ndpi_finalize_initalization(workflow->ndpi_struct);
ndpi_finalize_initialization(workflow->ndpi_struct);
return workflow;
}