-
Notifications
You must be signed in to change notification settings - Fork 11
/
options.txt
44 lines (34 loc) · 1.51 KB
/
options.txt
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
# If any of the entries in this file are incorrectly formatted or invalid, then the defaults will be used!
# The only required option to be set is gadget.
# All other options are optional.
# Valid gadgets are:
# serial
# ethernet, ethernet_ecm
# ethernet_rndis
# hid_payload
# storage
gadget: serial
# Can be any script or executable on the filesystem.
# Either an absolute path or a path relative to `/boot/usbninja/` will work
# The executable bit must also be set. See Documentation for details.
post: changeme
# Can be any 2 byte hex value in the form of 0x????.
vendorid: 0x1d6b
# Can be any 2 byte hex value in the form of 0x????.
productid: 0x0104
# Can be any 8 byte hex string in the form of ????????????????.
serialnumber: fedcba9876543210
# Not sure what the limit is for the length of the manufacturer string. Currently set to 32
manufacturer: Generic Corp
# Not sure what the limit is for the length of the productname string. Currently set to 32
productname: USB Device
# Both of these are only used if gadget is set to ethernet.
# The first octets have to be even
eth_hostaddr: 48:6f:73:74:50:43
eth_devaddr: 42:61:64:55:53:42
# This is only used in storage mode. If you have created your own backing file, then set it below.
# By default, this is /lib/usbninja/storage.img
storage: /lib/usbninja/storage.img
# This is only used if in hid_payload mode. Not required and only useful if debugging a problem.
# It's the number of milliseconds to leave in between successive HID packets sent to the Host OS.
delay: 0