DGA improvements
This commit is contained in:
@@ -4187,8 +4187,8 @@ static void dgaUnitTest() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const char *non_dga[] = {
|
const char *non_dga[] = {
|
||||||
|
"mail.100x100design.com",
|
||||||
"cdcvps.cloudapps.cisco.com",
|
"cdcvps.cloudapps.cisco.com",
|
||||||
"100x100design.com",
|
|
||||||
"vcsa.vmware.com",
|
"vcsa.vmware.com",
|
||||||
"mz.gov.pl",
|
"mz.gov.pl",
|
||||||
"zoomam104zc.zoom.us",
|
"zoomam104zc.zoom.us",
|
||||||
|
|||||||
+1
-1
@@ -8318,7 +8318,7 @@ int ndpi_check_dga_name(struct ndpi_detection_module_struct *ndpi_str,
|
|||||||
|
|
||||||
if(num_bigram_checks
|
if(num_bigram_checks
|
||||||
/* We already checked num_dots > 0 */
|
/* We already checked num_dots > 0 */
|
||||||
&& ((num_found == 0) || ((num_digits > 5) && (num_words <= 3))
|
&& ((num_found == 0) || ((num_digits > 5) && (num_words <= 3) && (num_impossible > 0))
|
||||||
|| enough(num_found, num_impossible)
|
|| enough(num_found, num_impossible)
|
||||||
|| ((num_trigram_checked > 2)
|
|| ((num_trigram_checked > 2)
|
||||||
&& ((num_trigram_found < (num_trigram_checked/2))
|
&& ((num_trigram_found < (num_trigram_checked/2))
|
||||||
|
|||||||
Reference in New Issue
Block a user