-
Notifications
You must be signed in to change notification settings - Fork 9
/
schema.json
245 lines (245 loc) · 8.14 KB
/
schema.json
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/preferences",
"$defs": {
"color": {
"type": "array",
"prefixItems": [
{
"type": "integer",
"title": "Red",
"description": "From 0 to 255",
"minimum": 0,
"maximum": 255
},
{
"type": "integer",
"title": "Green",
"description": "From 0 to 255",
"minimum": 0,
"maximum": 255
},
{
"type": "integer",
"title": "Blue",
"description": "From 0 to 255",
"minimum": 0,
"maximum": 255
},
{
"type": "integer",
"title": "Blink-Interval",
"description": "The blink interval in milliseconds, 0 means it's not blinking.",
"minimum": 0
}
],
"additionalItems": false,
"minItems": 4,
"maxItems": 4
},
"preferences": {
"title": "Preferences",
"description": "Preferences for your USB Nova",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"enable_msc": {
"type": "boolean",
"title": "Enable USB mass storage (USB drive) in attack mode",
"default": false
},
"enable_led": {
"type": "boolean",
"title": "Enable RGB LED",
"default": true
},
"enable_hid": {
"type": "boolean",
"title": "Enable HID in setup mode",
"default": true
},
"vid": {
"type": "string",
"title": "USB Vendor ID",
"pattern": "^[0-9A-F]{4}$",
"default": "16D0",
"examples": [
"05AC"
],
"minLength": 4,
"maxLength": 4
},
"pid": {
"type": "string",
"title": "USB Product ID",
"pattern": "^[0-9A-F]{4}$",
"default": "11A4",
"examples": [
"0250"
],
"minLength": 4,
"maxLength": 4
},
"version": {
"type": "string",
"title": "USB Product Revision (0100 => 1.0)",
"default": "0100",
"minLength": 4,
"maxLength": 4
},
"serial": {
"type": "string",
"title": "USB Serial Number Descriptor",
"default": "1337"
},
"manufacturer": {
"type": "string",
"title": "USB Manufacturer Descriptor",
"default": "SpacehuhnTech"
},
"product": {
"type": "string",
"title": "USB Product Descriptor",
"default": "USB Nova"
},
"default_layout": {
"type": "string",
"title": "Default Keyboard Layout",
"enum": [
"BE",
"BE_MAC",
"BG",
"BG_MAC",
"CA-CM",
"CA-FR",
"CA-FR_MAC",
"CH-DE",
"CH-FR",
"CH-DE_MAC",
"CH-FR_MAC",
"CZ",
"CZ_MAC",
"DE",
"DE_MAC",
"DK",
"DK_MAC",
"EE",
"EE_MAC",
"ES",
"ES_MAC",
"ES-LA",
"ES-LA_MAC",
"FI",
"FI_MAC",
"FR",
"FR_MAC",
"GB",
"GB_MAC",
"GR",
"GR_MAC",
"HU",
"HU_MAC",
"IE",
"IN",
"IN_MAC",
"IS",
"IS_MAC",
"IT",
"IT_MAC",
"LT",
"LT_MAC",
"LV",
"LV_MAC",
"NL",
"NL_MAC",
"NO",
"NO_MAC",
"PL",
"PL_MAC",
"PT-BR",
"PT-BR_MAC",
"PT",
"PT_MAC",
"RO",
"RO_MAC",
"RU",
"RU_MAC",
"SE",
"SE_MAC",
"SI",
"SI_MAC",
"SK",
"SK_MAC",
"TR",
"TR_MAC",
"UA",
"UA_MAC",
"US",
"US_MAC"
],
"default": "US"
},
"default_delay": {
"type": "integer",
"title": "Default delay between each line",
"default": 5,
"minimum": 0
},
"main_script": {
"type": "string",
"title": "Name of your BadUSB script",
"default": "main_script.txt"
},
"attack_color": {
"$ref": "#/$defs/color",
"title": "LED color for attack mode",
"default": [
128,
0,
0,
0
]
},
"setup_color": {
"$ref": "#/$defs/color",
"title": "LED color for setup mode",
"default": [
0,
0,
20,
0
]
},
"idle_color": {
"$ref": "#/$defs/color",
"title": "LED color for finished attack",
"default": [
0,
30,
0,
0
]
},
"disable_capslock": {
"type": "boolean",
"title": "Turn off capslock before starting attack (only work on Windows)",
"default": true
},
"run_on_indicator": {
"type": "boolean",
"title": "Start script when the user presses capslock, numlock, or another indicator key (only work on Windows)",
"default": false
},
"initial_delay": {
"type": "integer",
"title": "Startup delay",
"default": 1000,
"minimum": 0
}
}
}
}
}