mirror of
https://github.com/openappsec/openappsec.git
synced 2025-11-16 09:21:54 +03:00
Add check if obfuscation is enabled
This commit is contained in:
@@ -25,6 +25,8 @@ RuleSelector::selectSignatures() const
|
||||
{
|
||||
vector<IPSSignatureSubTypes::SignatureAndAction> res;
|
||||
|
||||
if (!IPSHelper::hasDeobfuscation()) return res;
|
||||
|
||||
auto all_signatures = getResource<IPSSignaturesResource>("IPS", "protections");
|
||||
if (!all_signatures.ok()) return res;
|
||||
auto signatures_version = getResourceWithDefault<string>("", "IPS", "VersionId");
|
||||
|
||||
Reference in New Issue
Block a user