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 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 ¶
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 ¶
func BigIPApManager() *Detector
func BigIPAppSecManager ¶
func BigIPAppSecManager() *Detector
func BigIPLocalTrafficManager ¶
func BigIPLocalTrafficManager() *Detector
func KonaSiteDefender ¶
func KonaSiteDefender() *Detector
func ModSecurity ¶
func ModSecurity() *Detector
func SecureSphere ¶
func SecureSphere() *Detector
func Trafficshield ¶
func Trafficshield() *Detector