|
whiskers 0.4.0
RP2350 BadUSB Tool
|
The device can also function as a storage device alongside a keyboard. Both the underlying SD card can be passed through (effectively acting as SD to USB adapter) alongside a fake "pubdisk" drive which is just a file formatted as a usable filesystem.
Using SD passthrough is very simple. Before initializing USB enable SD passthrough (wlua_usb_enable_sd_passthrough(true)). Note that the parameter describes whether the disk is read-only or not, by setting it to true it becomes writable, or un-writable if set to false. This does not affect the ability to create or modify files or directories from the device itself (ie. opening files in lua).
Using the pubdisk is slightly more complicated. First, the user must format the drive themselves using tools of their choosing. For example, if I wanted to set my disk to be FAT32 I can use mkfs.fat on linux, or something like drive manager for windows. The file can support all flavors of formatting as it's simply just a continous block of data on the SD card. Once the drive has been formatted the resulting "pubdisk.vdisk" file in the root directory on the SD card can be shared across devices to skip step one and or copy the exact contents of the pubdisk from device to device. Note: like SD passthrough, pubdisk must be enabled before starting USB!
Example instructions: