-
Notifications
You must be signed in to change notification settings - Fork 43
/
result.go
55 lines (42 loc) · 915 Bytes
/
result.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 simulator
// @Author bcy2007 2023/8/22 10:24
package simulator
type Result interface {
Username() string
Password() string
Status() bool
Info() string
Base64() string
LoginToken() string
LoginSuccessUrl() string
}
type BruteResult struct {
username string
password string
status bool
bruteInfo string
b64 string
token string
loginSuccessUrl string
}
func (result *BruteResult) Username() string {
return result.username
}
func (result *BruteResult) Password() string {
return result.password
}
func (result *BruteResult) Status() bool {
return result.status
}
func (result *BruteResult) Info() string {
return result.bruteInfo
}
func (result *BruteResult) Base64() string {
return result.b64
}
func (result *BruteResult) LoginToken() string {
return result.token
}
func (result *BruteResult) LoginSuccessUrl() string {
return result.loginSuccessUrl
}