diff options
author | Luca Deri <deri@ntop.org> | 2020-06-11 18:51:53 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-06-11 18:51:53 +0200 |
commit | 55364ef0b4ef629630a663dc7b05d83c1b662067 (patch) | |
tree | 46d9c5ecd55e7af6a2487b0bd9f6bf4eacebc765 /src/lib/protocols/dns.c | |
parent | 60aaa80570b48b15c14c2a5133d9b73f7578b21a (diff) |
Added DGA risk for names that look like a DGA
Diffstat (limited to 'src/lib/protocols/dns.c')
-rw-r--r-- | src/lib/protocols/dns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/protocols/dns.c b/src/lib/protocols/dns.c index 460117c96..099f343e4 100644 --- a/src/lib/protocols/dns.c +++ b/src/lib/protocols/dns.c @@ -292,8 +292,10 @@ static void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, st cl--; } } - flow->host_server_name[j] = '\0'; + flow->host_server_name[j] = '\0'; + ndpi_check_dga_name(ndpi_struct, flow, (char*)flow->host_server_name); + if(j > 0) { ndpi_protocol_match_result ret_match; |