mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
Add check if obfuscation is enabled
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
using namespace testing;
|
||||
using namespace std;
|
||||
|
||||
namespace IPSHelper
|
||||
{
|
||||
extern bool has_deobfuscation;
|
||||
} // namespace IPSHelper
|
||||
|
||||
MATCHER_P(IsLog, IteratableFields, "")
|
||||
{
|
||||
stringstream ss;
|
||||
@@ -53,6 +58,7 @@ class SignatureTest : public Test
|
||||
public:
|
||||
SignatureTest()
|
||||
{
|
||||
IPSHelper::has_deobfuscation = true;
|
||||
generic_rulebase.preload();
|
||||
EXPECT_CALL(logs, getCurrentLogId()).Times(AnyNumber());
|
||||
ON_CALL(table, getState(_)).WillByDefault(Return(&ips_state));
|
||||
|
Reference in New Issue
Block a user