Documentation ¶
Index ¶
- Constants
- func Base64decode(data string, utils *Tools) string
- func CmdLine(data string, utils *Tools) string
- func CompressWhitespace(value string, tools *Tools) string
- func CssDecode(data string, utils *Tools) string
- func EscapeSeqDecode(input string, tools *Tools) string
- func HexEncode(data string, utils *Tools) string
- func HtmlEntityDecode(data string, utils *Tools) string
- func JsDecode(data string, utils *Tools) string
- func Length(data string, utils *Tools) string
- func LowerCase(data string, utils *Tools) string
- func Md5(data string, utils *Tools) string
- func None(data string, utils *Tools) string
- func NormalisePath(data string, utils *Tools) string
- func NormalisePathWin(data string, utils *Tools) string
- func RemoveComments(value string, utils *Tools) string
- func RemoveCommentsChar(data string, utils *Tools) string
- func RemoveNulls(data string, utils *Tools) string
- func RemoveWhitespace(data string, tools *Tools) string
- func ReplaceComments(data string, utils *Tools) string
- func ReplaceNulls(data string, utils *Tools) string
- func Sha1(data string, utils *Tools) string
- func TransformationsMap() map[string]Transformation
- func UrlDecode(data string, utils *Tools) string
- func UrlDecodeUni(data string, tools *Tools) string
- func UrlEncode(data string, utils *Tools) string
- func Utf8ToUnicode(str string, tools *Tools) string
- type Tools
- type Transformation
Constants ¶
View Source
const ( PathSeparator = '\\' // OS-specific path separator PathListSeparator = ';' // OS-specific path list separator )
We had to force the changes to the original library :(
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 Base64decode ¶
func CmdLine ¶
https://github.com/SpiderLabs/ModSecurity/blob/b66224853b4e9d30e0a44d16b29d5ed3842a6b11/src/actions/transformations/cmd_line.cc Copied from modsecurity deleting all backslashes [\] deleting all double quotes ["] deleting all single quotes ['] deleting all carets [^] deleting spaces before a slash / deleting spaces before an open parentesis [(] replacing all commas [,] and semicolon [;] into a space replacing all multiple spaces (including tab, newline, etc.) into one space transform all characters to lowercase
func CompressWhitespace ¶
func EscapeSeqDecode ¶
func HtmlEntityDecode ¶
func NormalisePath ¶
func NormalisePathWin ¶
func RemoveComments ¶
func RemoveCommentsChar ¶
func RemoveNulls ¶
func RemoveWhitespace ¶
func ReplaceComments ¶
func ReplaceNulls ¶
func TransformationsMap ¶
func TransformationsMap() map[string]Transformation
func UrlDecodeUni ¶
func Utf8ToUnicode ¶
Types ¶
type Transformation ¶
Source Files ¶
- base64decode.go
- cmd_line.go
- compress_whitespace.go
- css_decode.go
- escape_seq_decode.go
- hex_encode.go
- html_entity_decode.go
- js_decode.go
- length.go
- lowercase.go
- md5.go
- none.go
- normalise_path.go
- normalise_path_win.go
- remove_comments.go
- remove_comments_char.go
- remove_nulls.go
- remove_whitespace.go
- replace_comments.go
- replace_nulls.go
- sha1.go
- transformations.go
- url_decode.go
- url_decode_uni.go
- url_encode.go
- utf8_to_unicode.go
Click to show internal directories.
Click to hide internal directories.