Documentation ¶
Index ¶
- Variables
- type Check
- func And(checks ...Check) Check
- func CheckContent(regex string, attack bool) Check
- func CheckCookie(regex string, attack bool) Check
- func CheckHeader(header, regex string, attack bool) Check
- func CheckReason(regex string, attack bool) Check
- func CheckStatusCode(status int, attack bool) Check
- func Or(checks ...Check) Check
- type Detector
- type Responses
Constants ¶
This section is empty.
Variables ¶
var Detectors = []*Detector{ KonaSiteDefender(), Incapsula(), SecureSphere(), BigIPAppSecManager(), BigIPLocalTrafficManager(), BigIPApManager(), FirePass(), Trafficshield(), ModSecurity(), }
Detectors is the list of all available WAF detectors. The checks are performed in the given order.
Functions ¶
This section is empty.
Types ¶
type Check ¶
Check performs some check on the response with a fixed condition.
func And ¶ added in v0.4.19
And combines the checks with AND logic, so each test must be true to return true.
func CheckContent ¶
CheckContent match body value with regex. Default value for attack parameter is true.
func CheckCookie ¶
CheckCookie match Set-Cookie header values with regex. Default value for attack parameter is false.
func CheckHeader ¶
CheckHeader match header value with regex. Default value for attack parameter is false.
func CheckReason ¶ added in v0.4.19
CheckReason match status reason value with regex. Default value for attack parameter is true.
func CheckStatusCode ¶
CheckStatusCode compare response status code with given value. Default value for attack parameter is true.
type Detector ¶
Detector contains names of WAF solution and vendor, and checks to detect that solution by response.
func BigIPApManager ¶ added in v0.4.19
func BigIPApManager() *Detector
func BigIPAppSecManager ¶ added in v0.4.19
func BigIPAppSecManager() *Detector
func BigIPLocalTrafficManager ¶ added in v0.4.19
func BigIPLocalTrafficManager() *Detector
func KonaSiteDefender ¶
func KonaSiteDefender() *Detector
func ModSecurity ¶ added in v0.4.19
func ModSecurity() *Detector
func SecureSphere ¶
func SecureSphere() *Detector
func Trafficshield ¶ added in v0.4.19
func Trafficshield() *Detector