mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
33 lines
562 B
C++
33 lines
562 B
C++
#include "helper.h"
|
|
|
|
#include "config.h"
|
|
|
|
using namespace std;
|
|
|
|
namespace IPSHelper
|
|
{
|
|
|
|
bool has_deobfuscation = false;
|
|
|
|
bool
|
|
hasDeobfuscation()
|
|
{
|
|
return has_deobfuscation;
|
|
}
|
|
|
|
string
|
|
deobfuscateString(const string &str)
|
|
{
|
|
if (str.substr(0, 7) == "M^AGI$C") reportConfigurationError("Deobfuscation isn't available in open-source mode");
|
|
return str;
|
|
}
|
|
|
|
string
|
|
deobfuscateKeyword(const string &str)
|
|
{
|
|
if (str.substr(0, 7) == "M^AGI$C") reportConfigurationError("Deobfuscation isn't available in open-source mode");
|
|
return str;
|
|
}
|
|
|
|
} // IPSHelper
|