blob: 980b47b80b1b03e5989b32b059ed72ff77cc4f13 (
plain)
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
|
package main
// Hide stores what requests to hide
type Hide struct {
HideCode, HideLine, HideWord, HideChar []int
}
// Show stores what requests to show
type Show struct {
ShowCode, ShowLine, ShowWord, ShowChar []int
}
// Config stores the overall config
type Config struct {
// show / hide config
Show Show
Hide Hide
// misc config
Color bool
Verbose bool
Printer string
Dryrun bool
Proxy string
Concurrent int
Delay int
FollowRedirect bool
URL string
Payload string
Wordlist string
PostData string
Headers string
Basicauth string
}
// Response defines the http response
type Response struct {
StatusCode int
ResponseLines int
ResponseWords int
ResponseChars int
FuzzWord string
}
// Found contains a list of all found endpoints an an Amount value indicating
// how many entries exist
type Found struct {
Amount int `json:"amount"`
Endpoint []Endpoint `json:"endpoint"`
}
// Endpoint defines an endpoint that has been found
type Endpoint struct {
Path string `json:"path"`
Code string `json:"code"`
Chars int `json:"chars"`
Words int `json:"words"`
Lines int `json:"lines"`
}
type channels struct {
wordlistChannel chan string
printChannel chan Response
doneChannel chan int
}
|