whiskers 0.4.0
RP2350 BadUSB Tool
Loading...
Searching...
No Matches
Lua

Using Lua

Using lua is as simple as writing a lua script, naming it "payload.lua", and inserting it into the root directory on the SD card for the device. The device will always automatically attempt to run this script at boot, and will NOT re-run it upon completion or failure.

The version of lua being used is 5.5.0. All basic lua library functions (besides those that deal with os functions, like time, randomness, and file operation) are usable like normal. For the functions that are not availabe, ie. file operations, custom functions have been exposed to the user and can be viewed here.

Other functions, including the ones that involve all the USB functionality (main functionality of the device) can also be found on the lua function documentation page.