-
Notifications
You must be signed in to change notification settings - Fork 7
/
sqli_const.go
55 lines (51 loc) · 1.56 KB
/
sqli_const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package libinjection
const (
// sqliFlagNone = 0
sqliFlagQuoteNone = 1
sqliFlagQuoteSingle = 2
sqliFlagQuoteDouble = 4
sqliFlagSQLAnsi = 8
sqliFlagSQLMysql = 16
)
const (
sqliLookupWord = 1
// sqliLookupType = 2
sqliLookupOperator = 3
sqliLookupFingerprint = 4
)
const (
byteNull uint8 = 0
byteSingle uint8 = '\''
byteDouble uint8 = '"'
byteTick uint8 = '`'
)
const (
sqliTokenTypeNone byte = 0
sqliTokenTypeKeyword byte = 'k'
sqliTokenTypeUnion byte = 'U'
sqliTokenTypeGroup byte = 'B'
sqliTokenTypeExpression byte = 'E'
sqliTokenTypeSQLType byte = 't'
sqliTokenTypeFunction byte = 'f'
sqliTokenTypeBareWord byte = 'n'
sqliTokenTypeNumber byte = '1'
sqliTokenTypeVariable byte = 'v'
sqliTokenTypeString byte = 's'
sqliTokenTypeOperator byte = 'o'
sqliTokenTypeLogicOperator byte = '&'
sqliTokenTypeComment byte = 'c'
sqliTokenTypeCollate byte = 'A'
sqliTokenTypeLeftParenthesis byte = '('
sqliTokenTypeRightParenthesis byte = ')'
sqliTokenTypeLeftBrace byte = '{'
sqliTokenTypeRightBrace byte = '}'
sqliTokenTypeDot byte = '.'
sqliTokenTypeComma byte = ','
sqliTokenTypeColon byte = ':'
sqliTokenTypeSemiColon byte = ';'
sqliTokenTypeTSQL byte = 'T'
sqliTokenTypeUnknown byte = '?'
sqliTokenTypeEvil byte = 'X'
sqliTokenTypeFingerprint byte = 'F'
sqliTokenTypeBackslash byte = '\\'
)