about summary refs log tree commit diff
path: root/src/structs.go
blob: d2f76c271d9451349843bc67fe5a1eeebf9ad3f9 (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
package main

// Hide stores what requests to hide
type Hide struct {
	HideCode, HideLine, HideWord, HideChar string
}

// Show stores what requests to show
type Show struct {
	ShowCode, ShowLine, ShowWord, ShowChar string
}

// 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
	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
}