FIXED - nDPI now detect RCE injections via PCRE instead Intel Hyperscan

This commit is contained in:
MrTiz9
2020-02-01 17:18:35 +01:00
parent b3138d5e3e
commit 3422574c17
4 changed files with 14 additions and 858 deletions
+3 -10
View File
@@ -1237,14 +1237,12 @@ static void ndpi_compile_rce_regex() {
comp_rx[i]->optimized = pcre_study(comp_rx[i]->compiled, 0, &pcreErrorStr);
#ifdef DEBUG
if(pcreErrorStr != NULL) {
#ifdef DEBUG
NDPI_LOG_ERR(ndpi_str, "ERROR: Could not study '%s': %s\n", rce_regex[i],
pcreErrorStr);
#endif
continue;
}
#endif
}
free((void *)pcreErrorStr);
@@ -1264,12 +1262,7 @@ static int ndpi_is_rce_injection(char* query) {
pcreExecRet = pcre_exec(comp_rx[i]->compiled,
comp_rx[i]->optimized,
query,
length,
0,
0,
subStrVec,
30);
query, length, 0, 0, subStrVec, 30);
if (pcreExecRet >= 0) {
return 1;
File diff suppressed because one or more lines are too long