-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpkg_consts.go
37 lines (35 loc) · 1.52 KB
/
pkg_consts.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
package fuzzer
const (
tknStart = "["
tknEnd = "]"
tknTypeStr = "s" //
tknTypeStrL = tknTypeStr + "l:" // [sl:5]
tknTypeStrU = tknTypeStr + "u:" // [su:5]
tknTypeStrR = tknTypeStr + ":" // [s:5]
tknTypeAlpha = "a" //
tknTypeAlphaL = tknTypeAlpha + "l:" // [al:5]
tknTypeAlphaU = tknTypeAlpha + "u:" // [au:5]
tknTypeAlphaR = tknTypeAlpha + ":" // [a:5]
tknTypeFloat = "f:" // [f:5,2]
tknTypeInt = "i:" // [i:5]
tknTypeHash = "#" // [#5]
tknTypeUUID = tknTypeHash + "UUID" // [#UUID]
tknTypeEncBase64 = "b64:" // [b64:123]
tknTypeEncBase32 = "b32:" // [b32:123]
tknTypeEncBase85 = "b85:" // [b85:123]
tknTypeEncBin = "bin:" // [bin:123]
tknTypeEncURL = "url:" // [url:123]
tknTypeEncHex = "hex:" // [hex:123]
tknTypeMem = ":" // [:dir/file]
tknTypeFn = "$" // [$fn:1234;5667;abc;3g]
)
const (
charsetInt = "0123456789"
charsetStringLower = "abcdefghijklmnopqrstuvwxyz"
charsetStringUpper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
charsetHex = "abcdef" + charsetInt
charsetStringRand = charsetStringLower + charsetStringUpper
charsetAlphaLower = charsetStringLower + charsetInt
charsetAlphaUpper = charsetStringUpper + charsetInt
charsetAlphaRand = charsetStringLower + charsetStringUpper + charsetInt
)