Documentation ¶
Index ¶
- Constants
- func OperatorsMap() map[string]engine.Operator
- type BeginsWith
- type Contains
- type DetectSQLi
- type DetectXSS
- type EndsWith
- type Eq
- type FuzzyHash
- type Ge
- type GeoLookup
- type Gt
- type InspectFile
- type IpMatch
- type IpMatchFromFile
- type Le
- type Lt
- type NoMatch
- type Pm
- type PmFromFile
- type Rbl
- type Rx
- type Streq
- type UnconditionalMatch
- type ValidateByteRange
- type ValidateNid
- type ValidateUrlEncoding
- type ValidateUtf8Encoding
- type VerifyCC
- type Within
Constants ¶
View Source
const ( UNICODE_ERROR_CHARACTERS_MISSING = -1 UNICODE_ERROR_INVALID_ENCODING = -2 UNICODE_ERROR_OVERLONG_CHARACTER = -3 UNICODE_ERROR_RESTRICTED_CHARACTER = -4 UNICODE_ERROR_DECODING_ERROR = -5 )
Variables ¶
This section is empty.
Functions ¶
func OperatorsMap ¶
Types ¶
type BeginsWith ¶
type BeginsWith struct {
// contains filtered or unexported fields
}
func (*BeginsWith) Evaluate ¶
func (o *BeginsWith) Evaluate(tx *engine.Transaction, value string) bool
func (*BeginsWith) Init ¶
func (o *BeginsWith) Init(data string) error
type DetectSQLi ¶
type DetectSQLi struct{}
func (*DetectSQLi) Evaluate ¶
func (o *DetectSQLi) Evaluate(tx *engine.Transaction, value string) bool
func (*DetectSQLi) Init ¶
func (o *DetectSQLi) Init(data string) error
type DetectXSS ¶
type DetectXSS struct{}
type FuzzyHash ¶
type FuzzyHash struct {
// contains filtered or unexported fields
}
type GeoLookup ¶
type GeoLookup struct {
// contains filtered or unexported fields
}
type InspectFile ¶
type InspectFile struct {
// contains filtered or unexported fields
}
func (*InspectFile) Evaluate ¶
func (o *InspectFile) Evaluate(tx *engine.Transaction, value string) bool
func (*InspectFile) Init ¶
func (o *InspectFile) Init(data string) error
type IpMatchFromFile ¶
type IpMatchFromFile struct {
// contains filtered or unexported fields
}
func (*IpMatchFromFile) Evaluate ¶
func (o *IpMatchFromFile) Evaluate(tx *engine.Transaction, value string) bool
func (*IpMatchFromFile) Init ¶
func (o *IpMatchFromFile) Init(data string) error
type PmFromFile ¶
type PmFromFile struct { Data []string // contains filtered or unexported fields }
func (*PmFromFile) Evaluate ¶
func (o *PmFromFile) Evaluate(tx *engine.Transaction, value string) bool
func (*PmFromFile) Init ¶
func (o *PmFromFile) Init(data string) error
type Rbl ¶
type Rbl struct {
// contains filtered or unexported fields
}
func (*Rbl) Evaluate ¶
func (o *Rbl) Evaluate(tx *engine.Transaction, value string) bool
https://github.com/mrichman/godnsbl https://github.com/SpiderLabs/ModSecurity/blob/b66224853b4e9d30e0a44d16b29d5ed3842a6b11/src/operators/rbl.cc
type UnconditionalMatch ¶
type UnconditionalMatch struct{}
func (*UnconditionalMatch) Evaluate ¶
func (o *UnconditionalMatch) Evaluate(tx *engine.Transaction, value string) bool
func (*UnconditionalMatch) Init ¶
func (o *UnconditionalMatch) Init(data string) error
type ValidateByteRange ¶
type ValidateByteRange struct {
// contains filtered or unexported fields
}
func (*ValidateByteRange) Evaluate ¶
func (o *ValidateByteRange) Evaluate(tx *engine.Transaction, data string) bool
func (*ValidateByteRange) Init ¶
func (o *ValidateByteRange) Init(data string) error
type ValidateNid ¶
type ValidateNid struct {
// contains filtered or unexported fields
}
func (*ValidateNid) Evaluate ¶
func (o *ValidateNid) Evaluate(tx *engine.Transaction, value string) bool
func (*ValidateNid) Init ¶
func (o *ValidateNid) Init(data string) error
type ValidateUrlEncoding ¶
type ValidateUrlEncoding struct {
// contains filtered or unexported fields
}
func (*ValidateUrlEncoding) Evaluate ¶
func (o *ValidateUrlEncoding) Evaluate(tx *engine.Transaction, value string) bool
func (*ValidateUrlEncoding) Init ¶
func (o *ValidateUrlEncoding) Init(data string) error
type ValidateUtf8Encoding ¶
type ValidateUtf8Encoding struct{}
func (*ValidateUtf8Encoding) Evaluate ¶
func (o *ValidateUtf8Encoding) Evaluate(tx *engine.Transaction, value string) bool
func (*ValidateUtf8Encoding) Init ¶
func (o *ValidateUtf8Encoding) Init(data string) error
Source Files ¶
- begins_with.go
- contains.go
- detect_sqli.go
- detect_xss.go
- ends_with.go
- eq.go
- fuzzy_hash.go
- ge.go
- geo_lookup.go
- gt.go
- inspect_file.go
- ip_match.go
- ip_match_from_file.go
- le.go
- lt.go
- no_match.go
- operators.go
- pm.go
- pm_from_file.go
- rbl.go
- rx.go
- streq.go
- unconditional_match.go
- validate_byte_range.go
- validate_nid.go
- validate_url_encoding.go
- validate_utf8_encoding.go
- verify_cc.go
- within.go
Click to show internal directories.
Click to hide internal directories.