mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds refCounter to actions
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_ACCURACY_H_
|
||||
#define SRC_ACTIONS_ACCURACY_H_
|
||||
|
@@ -13,7 +13,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
@@ -1,135 +0,0 @@
|
||||
/*
|
||||
* ModSecurity, http://www.modsecurity.org/
|
||||
* Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/)
|
||||
*
|
||||
* You may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* If any of the files related to licensing are missing or if you have any
|
||||
* other questions related to licensing please contact Trustwave Holdings, Inc.
|
||||
* directly using the email address security@modsecurity.org.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include "modsecurity/intervention.h"
|
||||
#include "modsecurity/rule.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_ACTION_H_
|
||||
#define SRC_ACTIONS_ACTION_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
namespace modsecurity {
|
||||
class Transaction;
|
||||
class Rule;
|
||||
|
||||
namespace actions {
|
||||
|
||||
|
||||
class Action {
|
||||
public:
|
||||
explicit Action(const std::string& _action)
|
||||
: action_kind(2),
|
||||
m_isNone(false),
|
||||
m_name(""),
|
||||
m_parser_payload(""),
|
||||
temporaryAction(false) {
|
||||
set_name_and_payload(_action);
|
||||
}
|
||||
explicit Action(const std::string& _action, int kind)
|
||||
: action_kind(kind),
|
||||
m_isNone(false),
|
||||
m_name(""),
|
||||
m_parser_payload(""),
|
||||
temporaryAction(false) {
|
||||
set_name_and_payload(_action);
|
||||
}
|
||||
|
||||
virtual ~Action() { }
|
||||
|
||||
virtual std::string evaluate(std::string exp,
|
||||
Transaction *transaction);
|
||||
virtual bool evaluate(Rule *rule, Transaction *transaction);
|
||||
virtual bool evaluate(Rule *rule, Transaction *transaction,
|
||||
RuleMessage *ruleMessage) {
|
||||
return evaluate(rule, transaction);
|
||||
}
|
||||
virtual bool init(std::string *error) { return true; }
|
||||
virtual bool isDisruptive() { return false; }
|
||||
virtual void fillIntervention(ModSecurityIntervention *intervention);
|
||||
static Action *instantiate(const std::string& name);
|
||||
|
||||
|
||||
void set_name_and_payload(const std::string& data) {
|
||||
size_t pos = data.find(":");
|
||||
std::string t = "t:";
|
||||
|
||||
if (data.compare(0, t.length(), t) == 0) {
|
||||
pos = data.find(":", 2);
|
||||
}
|
||||
|
||||
if (pos == std::string::npos) {
|
||||
m_name = data;
|
||||
return;
|
||||
}
|
||||
|
||||
m_name = std::string(data, 0, pos);
|
||||
m_parser_payload = std::string(data, pos + 1, data.length());
|
||||
|
||||
if (m_parser_payload.at(0) == '\'' && m_parser_payload.size() > 2) {
|
||||
m_parser_payload.erase(0, 1);
|
||||
m_parser_payload.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
bool m_isNone;
|
||||
bool temporaryAction;
|
||||
int action_kind;
|
||||
std::string m_name;
|
||||
std::string m_parser_payload;
|
||||
|
||||
/**
|
||||
*
|
||||
* Define the action kind regarding to the execution time.
|
||||
*
|
||||
*
|
||||
*/
|
||||
enum Kind {
|
||||
/**
|
||||
*
|
||||
* Action that are executed while loading the configuration. For instance
|
||||
* the rule ID or the rule phase.
|
||||
*
|
||||
*/
|
||||
ConfigurationKind,
|
||||
/**
|
||||
*
|
||||
* Those are actions that demands to be executed before call the operator.
|
||||
* For instance the tranformations.
|
||||
*
|
||||
*
|
||||
*/
|
||||
RunTimeBeforeMatchAttemptKind,
|
||||
/**
|
||||
*
|
||||
* Actions that are executed after the execution of the operator, only if
|
||||
* the operator returned Match (or True). For instance the disruptive
|
||||
* actions.
|
||||
*
|
||||
*/
|
||||
RunTimeOnlyIfMatchKind,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
} // namespace actions
|
||||
} // namespace modsecurity
|
||||
|
||||
#endif
|
||||
|
||||
#endif // SRC_ACTIONS_ACTION_H_
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_ALLOW_H_
|
||||
#define SRC_ACTIONS_ALLOW_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_AUDIT_LOG_H_
|
||||
#define SRC_ACTIONS_AUDIT_LOG_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_BLOCK_H_
|
||||
#define SRC_ACTIONS_BLOCK_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CAPTURE_H_
|
||||
#define SRC_ACTIONS_CAPTURE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CHAIN_H_
|
||||
#define SRC_ACTIONS_CHAIN_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CTL_AUDIT_LOG_PARTS_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CTL_REQUEST_BODY_PROCESSOR_JSON_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CTL_REQUEST_BODY_PROCESSOR_XML_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_DENY_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_INIT_COL_H_
|
||||
#define SRC_ACTIONS_INIT_COL_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/operators/operator.h"
|
||||
#include "modsecurity/rule_message.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_LOG_H_
|
||||
#define SRC_ACTIONS_LOG_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/macro_expansion.h"
|
||||
#include "modsecurity/rule.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_LOG_DATA_H_
|
||||
#define SRC_ACTIONS_LOG_DATA_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_MATURITY_H_
|
||||
#define SRC_ACTIONS_MATURITY_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/macro_expansion.h"
|
||||
#include "modsecurity/rule.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_MSG_H_
|
||||
#define SRC_ACTIONS_MSG_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_NO_AUDIT_LOG_H_
|
||||
#define SRC_ACTIONS_NO_AUDIT_LOG_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/operators/operator.h"
|
||||
#include "modsecurity/rule_message.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_NO_LOG_H_
|
||||
#define SRC_ACTIONS_NO_LOG_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_PASS_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_PHASE_H_
|
||||
#define SRC_ACTIONS_PHASE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_REDIRECT_H_
|
||||
#define SRC_ACTIONS_REDIRECT_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_REV_H_
|
||||
#define SRC_ACTIONS_REV_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_RULE_ID_H_
|
||||
#define SRC_ACTIONS_RULE_ID_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SET_SID_H_
|
||||
#define SRC_ACTIONS_SET_SID_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SET_UID_H_
|
||||
#define SRC_ACTIONS_SET_UID_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SET_VAR_H_
|
||||
#define SRC_ACTIONS_SET_VAR_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/utils/string.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SEVERITY_H_
|
||||
#define SRC_ACTIONS_SEVERITY_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SKIP_H_
|
||||
#define SRC_ACTIONS_SKIP_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SKIP_AFTER_H_
|
||||
#define SRC_ACTIONS_SKIP_AFTER_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_STATUS_H_
|
||||
#define SRC_ACTIONS_STATUS_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/macro_expansion.h"
|
||||
#include "modsecurity/rule.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TAG_H_
|
||||
#define SRC_ACTIONS_TAG_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_BASE64_DECODE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_BASE64_DECODE_EXT_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_BASE64_ENCODE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_CMD_LINE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_COMPRESS_WHITESPACE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_CSS_DECODE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_ESCAPE_SEQ_DECODE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_HEX_DECODE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_HEX_ENCODE_H_
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/utils/string.h"
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_JS_DECODE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_LENGTH_H_
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_LOWER_CASE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_MD5_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_NONE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_NORMALISE_PATH_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_NORMALISE_PATH_WIN_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_PARITY_EVEN_7BIT_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_PARITY_ODD_7BIT_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_PARITY_ZERO_7BIT_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REMOVE_COMMENTS_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REMOVE_COMMENTS_CHAR_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REMOVE_NULLS_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REMOVE_WHITESPACE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REPLACE_COMMENTS_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REPLACE_NULLS_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_SHA1_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_SQL_HEX_DECODE_H_
|
||||
|
@@ -21,7 +21,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/base64_decode_ext.h"
|
||||
#include "src/actions/transformations/base64_decode.h"
|
||||
#include "src/actions/transformations/base64_encode.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_TRANSFORMATION_H_
|
||||
#define SRC_ACTIONS_TRANSFORMATIONS_TRANSFORMATION_H_
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_TRIM_H_
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/transformations/trim.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/transformations/trim.h"
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/transformations/trim.h"
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_URL_DECODE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_URL_DECODE_UNI_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_URL_ENCODE_H_
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_UTF8_TO_UNICODE_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_VER_H_
|
||||
#define SRC_ACTIONS_VER_H_
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
namespace modsecurity {
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_XMLNS_H_
|
||||
#define SRC_ACTIONS_XMLNS_H_
|
||||
|
Reference in New Issue
Block a user