> For the complete documentation index, see [llms.txt](https://0xlava.gitbook.io/ducky-morph/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xlava.gitbook.io/ducky-morph/supported-duckyscript-version.md).

# Supported DuckyScript Version

DuckyMorph currently implements a **subset of the DuckyScript language**, focusing on core execution primitives required for payload construction and automation.

Instead of targeting a specific vendor-defined version strictly, the framework supports a **DuckyScript-like core specification** inspired by common Rubber Ducky implementations, with partial compatibility across multiple versions.

***

## Supported Command Set :&#x20;

### Comments :&#x20;

* <mark style="color:green;">**REM**</mark>&#x20;
* <mark style="color:green;">**REM\_BLOCK**</mark>&#x20;

### Text Input :&#x20;

* <mark style="color:yellow;">**STRING**</mark>
* <mark style="color:yellow;">**STRINGLN**</mark>

> Any of this can be block of values & end with (<mark style="color:yellow;">END\_STRING</mark> /<mark style="color:yellow;">LN</mark>)&#x20;

### Keyboard Input :&#x20;

* <mark style="color:purple;">`KEY_PRESS`</mark>&#x20;
* <mark style="color:purple;">`KEY_COMBO`</mark>
* <mark style="color:purple;">`KEY_RELEASE`</mark>
* <mark style="color:purple;">`KEY_RELEASE_ALL`</mark> &#x20;

**DuckyScript** Commands Like :&#x20;

```
REM KEY_PRESS
CTRL 

REM KEY_COMBO 
GUI r 

REM KEY_RELEASE 
HOLD x 
RELEASE x 

REM KEY_RELEASE_ALL 
HOLD x 
HOLD W 

RELEASE 

REM RELEASE Without any parameter = RELEASE_ALL 

```

### Execution Control :&#x20;

* <mark style="color:orange;">**DELAY**</mark>&#x20;

### Key State Control :&#x20;

* <mark style="color:pink;">**HOLD**</mark>&#x20;

## Version Compatibility Notes :&#x20;

DuckyMorph does not strictly bind itself to a single official DuckyScript version (e.g. Hak5 DuckyScript v1 or v3). Instead:

* Core commands (`REM`, `STRING`, `DELAY`) are compatible with **classic DuckyScript v1-style payloads**
* Extended keyboard control (`KEY_COMBO`, `HOLD`, `KEY_RELEASE_ALL`) is inspired by **modern extended DuckyScript implementations**
* Multi-line comment support and explicit key state management are **framework-level enhancements**

***

## DuckyScript Resource :&#x20;

{% embed url="<https://documentation.hak5.org/hak5-usb-rubber-ducky>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://0xlava.gitbook.io/ducky-morph/supported-duckyscript-version.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
