DevKitty-io / USB-Nugget

Run DuckyScript payloads on a USB Nugget!
https://usbnugget.com
MIT License
149 stars 16 forks source link

Update config file parsing #102

Closed brandonpaiz closed 1 year ago

skickar commented 1 year ago

Add menu text (commented out):

"USB Nugget Settings: Here you can change the vendor ID (VID) and product ID (PID) that the USB Nugget reports itself as to any computer it is plugged in to. By default, the Nugget is set to identify as an Apple keyboard.

Wi-Fi Menu: Change these settings to modify the Wi-Fi network name and password the Nugget creates for its Wi-Fi interface. Change the password to prevent others from logging into your nugget. Passwords must be at least 8 characters in length."

❌ Changing the Wi-Fi network name in the .conf file does not change the Wi-Fi network name

❌ Changing the Wi-Fi network password in the .conf file does not change the Wi-Fi network password

My conf file:

# Settings
# password must be 8 chars or longer

network = "WhompusNugget"
password = "password123"
vid = "0x05ac"
pid = "0x20b"
brandonpaiz commented 1 year ago

During testing I inverted the order of setting up the filesystem and reading the config file to make debugging easier. But you know, it's really hard to read from the config file before you set up the filesystem :)

Defaults were being used when the filesystem was not present.