Compiler Settings
Settings related to the DuckyScript compiler.
Some options are limited to PayloadStudio Pro. These will be indicated with the
label

Even though each setting is named to be self explanatory - every setting in PayloadStudio contains an description / explanation tool-tip available on hover

Setting description tool-tip
With this option disabled, the language file will reset to default US every time PayloadStudio loads
Displays the current language file name above the main editor. Also provides shortcut to Settings - Compiler Settings.
- 1.Navigate to Settings > Compiler Settings
- 2.Under the DUCKY_LANG heading click the Language buttonSettings > Compiler Settings > DUCKY_LANG > Language button
- 3.Select, import or upload a new language file

Change Language Menu
- 1.Navigate to Settings > Compiler Settings
- 2.Under the DUCKY_LANG heading from the Language Editor select thebutton from the editor's toolbar

Reset language to Default US
Click the download
button from the editor's toolbar


Download Language File
Editing the language directly from within PayloadStudio Pro is as simple as making the changes in the dedicated Language Editor
Click the
button to make the language editor larger


Pending Language File Changes
After saving your changes, metadata will appear above the editor

Language File Metadata
Languages must be valid JSON to import, upload or save. Key value pairs with valid hex as the value. See example on Github

Language file errors
Shows lines modified by DEFINE as a warning to help ensure the result of build is as expected. Unchecking this will still annotate as info, but will not remind you as part of output in console on compile.

Annotation

Compiler output
With this option enabled, the contents of the Console will be cleared automatically when you click Generate Payload. Scroll back / history will be kept.
With this option enabled, the contents and history of the Console will be deleted automatically when you click Generate Payload.
Shows a more specific breakdown of byte usage in your payload to help you optimize and plan around any scenario

Detailed Payload Memory Usage Compiler Output
Shows the remaining available payload memory below the main editor. Requires
Live Error Checking
to be enabled.
Remaining payload memory indicator pinned to bottom left of the editor
Shows DuckyScript compiler info, error and warning counts above editor. Provides shortcuts to step through each in the payload.

info, error and warning count pinned to top right of the editor
With this option enabled, clicking the Generate Payload button will set the editor to Read only to prevent any further accidental changes (temporarily) ensuring the inject.bin will match the editor.
Toggle editor from Read Only to Editing by clicking the label or icon pinned to the top right above the editor

Read Only Mode

Editing Mode
With this option enabled, after successfully compiling a payload, PayloadStudio will automatically prompt you to download/save the inject.bin
With this option enabled, after successfully compiling a payload, PayloadStudio will automatically prompt you to download/save the DuckyScript payload used to compile the inject.bin