-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathtype.go
68 lines (53 loc) · 1.89 KB
/
type.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
package main
var args []string
var targets []string
type Match struct {
Headers map[string]interface{} `json:"headers"`
Strings []string `json:"strings"`
ResponseCode int `json:"response_code"`
Condition string `json:"condition"`
}
type Entry struct {
Matchers Match `json:"matchers"`
Category string `json:"category"`
Tag string `json:"tag"`
}
type DynamicEntries map[string]Entry
//STRUCTS FOR VENDOR LOGINS
type CustomHeaders map[string]string
type CustomPayload struct {
Paths []string `json:"paths"`
Headers CustomHeaders `json:"headers"`
Body string `json:"body"`
Method string `json:"method"`
}
type CustomMatchers struct {
ResponseCode int `json:"response_code"`
Responsepath string `json:"responsePath"`
Strings []string `json:"strings"`
Headers CustomHeaders `json:"headers"`
}
type CustomEntry struct {
Tag string `json:"tag"`
Payload CustomPayload `json:"payload"`
Matchers CustomMatchers `json:"matchers"`
Issue string `json:"issue"`
}
type CustomEntries map[string]CustomEntry
type MyVendorLogins struct {
Entries CustomEntries `json:"entries"`
}
var vendorDB MyVendorLogins
var vendorVulnsDB MyVendorLogins
var genzaiDB DynamicEntries
var saveOutput string
var banner = `
:::::::: :::::::::: :::: ::: ::::::::: ::: :::::::::::
:+: :+: :+: :+:+: :+: :+: :+: :+: :+:
+:+ +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+
:#: +#++:++# +#+ +:+ +#+ +#+ +#++:++#++: +#+
+#+ +#+# +#+ +#+ +#+#+# +#+ +#+ +#+ +#+
#+# #+# #+# #+# #+#+# #+# #+# #+# #+#
######## ########## ### #### ######### ### ### ###########
The IoT Security Toolkit by Umair Nehri (0x9747) and Taleb (rumble773)
`