2.18 Hak5 — O.MG DuckyScript studio

Translated from French; the French version prevails if the two differ.

In short. O.MG implants (Cable, Plug) run DuckyScript. Beyond the simple “Open web”, the Tools view offers a native DuckyScript studio: you pick the O.MG device, write the payload in an editor with DuckyScript highlighting, choose the slot, then Build or Build + Run pushes the payload to the implant through its control interface. A log, opening / saving a .txt payload and a community library complete the view. The Hak5 / O.MG connector leads straight to it with Open in the studio. See also 2.17 (Hak5 / O.MG connector) and 2.19 (O.MG native console).

The view

The studio is a tool of the Tools view (sidebar), “O.MG DuckyScript studio”, opened in a tab like the other tools. At the top: the O.MG device picker (among the O.MG devices saved in the Hak5 / O.MG connector), the slot, Simulation, Open…, Save…, Library, Build, Build + Run. In the center, the editor; at the bottom, the log of commands and results. Shortcuts: Ctrl+B (Build), Ctrl+Enter (Build + Run), Ctrl+S (save). With no O.MG device saved, the studio can still be used in simulation.

From the connector: in the Connectors view, Hak5 / O.MG row, O.MG Cable or O.MG Plug model, a device’s Open in the studio button opens this tool already set on that device. A device that no longer exists is reported in the status bar, and the studio keeps its remembered device. The same link opens with the development command tool=ducky-omg&device=<id>.

DuckyScript

Payload language of O.MG implants (derived from Hak5’s DuckyScript, with O.MG-specific commands). The editor highlights commands, keys, delays, comments (REM, REM_BLOCK … END_REM), $x variables and O.MG constants (DUCKY_LANG…). A light check before sending catches obvious errors (empty payload, DELAY/REPEAT without a number, unclosed comment block) — it is not a compiler: the device compiles.

Build / Build + Run

Build compiles the payload into the selected slot on the device; Build + Run compiles it then runs it. The endpoint is the configuration web address of the saved device (http://192.168.4.1 by default).

TransportBuild commandsDefault mode
O.MG Cable / PlugUnencrypted WebSocket ws://<host>/d/ws/issue, tab-separated ASCII commandsTo be confirmed on the hardware: the exact commands (slot write, build, run) are not publicly documented by O.MGSimulation

Simulation mode

Until the O.MG API commands are confirmed on real hardware, the studio runs in simulation mode (checked by default): it checks and encodes the payload and shows in the log the commands that would be sent, without sending anything — enough to try the whole studio without risking the device. Unchecking Simulation actually sends the payload to the device.

Community library

The Library button opens a panel to fetch community payloads and load them into the editor. By default it browses the official Hak5 repository hak5/omg-payloads (configurable source: owner, repository, branch, path). You pick a category, search for a payload, preview it, then Load into the editor.

Safeguards: the network is only used when the panel opens; the payload lands in the editor and is never run directly (banner “community script — review before running”); the author and a View source link are shown. Browsed catalogs and payloads are cached (fast browsing, brief offline re-reading). Without authentication, the GitHub API allows 60 requests per hour; once the limit is reached, a message says so and the cache takes over.

Limits