Added the ability to set custom alert score

This commit is contained in:
Luca Deri 2024-04-29 11:56:02 +02:00
parent 7078912d43
commit ddd449ea90
75 changed files with 1586 additions and 1600 deletions

View file

@ -37,12 +37,11 @@ class FlowRiskURLPossibleSQLInjectionAlert : public FlowRiskAlert {
}
FlowRiskURLPossibleSQLInjectionAlert(FlowCheck *c, Flow *f)
: FlowRiskAlert(c, f){};
: FlowRiskAlert(c, f){ setAlertScore(getDefaultScore());};
~FlowRiskURLPossibleSQLInjectionAlert(){};
FlowAlertType getAlertType() const { return getClassType(); }
ndpi_risk_enum getAlertRisk() const { return getClassRisk(); }
u_int8_t getAlertScore() const { return getDefaultScore(); }
bool autoAck() const { return false; };
};