/
options.go
86 lines (80 loc) 路 2.5 KB
/
options.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package model
import (
t "time"
s "github.com/briandowns/spinner"
a "github.com/logrusorgru/aurora"
)
// Options is struct of options
type Options struct {
UniqParam string `json:"param"`
Cookie string `json:"cookie"`
Header string `json:"header"`
ConfigFile string `json:"config"`
BlindURL string `json:"blind"`
CustomPayloadFile string `json:""`
CustomAlertValue string `json:"custom-alert-value"`
CustomAlertType string `json:"custom-alert-type"`
Data string `json:"data"`
UserAgent string `json:"user-agent"`
OutputFile string `json:"output"`
Format string `json:"format"`
FoundAction string `json:"found-action"`
ProxyAddress string `json:"proxy"`
Grep string `json:"grep"`
IgnoreReturn string `json:"ignore-return"`
Trigger string `json:"trigger"`
Timeout int `json:"timeout"`
Concurrence int `json:"worker"`
Delay int `json:"delay"`
AllURLS int
NowURL int
Sequence int `json:"sequence"`
OnlyDiscovery bool `json:"only-discovery"`
OnlyCustomPayload bool `json:"only-custom-payload"`
Silence bool `json:"silence"`
IsAPI bool
IsLibrary bool
Mass bool `json:"mass"`
MulticastMode bool
Scan map[string]Scan
FollowRedirect bool `json:"follow-redirects"`
Mining bool `json:"mining-dict"`
FindingDOM bool `json:"mining-dom"`
MiningWordlist string `json:"mining-dict-word"`
NoColor bool `json:"no-color"`
Method string `json:"method"`
NoSpinner bool `json:"no-spinner"`
NoBAV bool `json:"no-bav"`
ServerHost string
ServerPort int
NoGrep bool `json:"skip-grepping"`
Debug bool `json:"debug"`
CookieFromRaw string
ScanResult Result
SpinnerObject *s.Spinner
AuroraObject a.Aurora
StartTime t.Time
PathReflection map[int]string
RemotePayloads string
RemoteWordlists string
UseHeadless bool `json:"use-headless"`
UseDeepDXSS bool `json:"use-deepdxss"`
}
// MassJob is list for mass
type MassJob struct {
Name string
URLs []string
}
// Scan is struct of scan
type Scan struct {
URL string
ScanID string
Logs []string
Results []Issue
}
// Issue is struct of issue
type Issue struct {
Type string `json:"type"`
Param string `json:"param"`
PoC string `json:"poc"`
}