Added ndpi_has_human_readeable_string for detecting human-readeable strings in buffers

This commit is contained in:
Luca Deri
2019-06-30 11:59:51 +02:00
parent 06b05e21c6
commit a1ac31062d
5 changed files with 93 additions and 7 deletions
+5 -2
View File
@@ -8700,8 +8700,7 @@ ndpi_protocol_match host_match[] = {
{ NULL, NULL, NULL, 0 }
};
/* ****************************************************** */
/* ******************************************************************** */
/*
Tor
@@ -8763,6 +8762,8 @@ static const char *ndpi_en_bigrams[] = {
"py", "ry", "sy", "ty", "uy", "vy", "wy", "xy", "yy", "zy", "az", "bz", "cz", "dz", "ez", "gz", "iz",
"lz", "nz", "oz", "pz", "rz", "tz", "uz", "zz", NULL };
/* ******************************************************************** */
static const char *ndpi_en_impossible_bigrams[] = {
"bk", "bq", "bx", "cb", "cf", "cg", "cj", "cp", "cv", "cw", "cx", "dx", "fk", "fq", "fv", "fx", /* "ee", removed it can be found in 'meeting' */
"fz", "gq", "gv", "gx", "hh", "hk", "hv", "hx", "hz", "iy", "jb", /* "jc", jcrew.com */ "jd", "jf", "jg", "jh", "jk",
@@ -8775,3 +8776,5 @@ static const char *ndpi_en_impossible_bigrams[] = {
"yj", "yq", "yv", "yz", "yw", "zb", "zc", "zg", "zh", "zj", "zn", "zq", "zs", "zx", "wh", "wk",
"wb", "zk", "kp", "zk", "xy",
NULL };