DuckyScript for Packet Squirrel
DuckyScript is the payload language of Hak5 gear.
Originating on the Hak5 USB Rubber Ducky as a standalone language, the Packet Squirrel uses DuckyScript commands to bring the ethos of easy-to-use actions to the payload language.
DuckyScript commands are always in all capital letters to distinguish them from other system or script language commands. Typically, they take a small number of options (or sometimes no options at all).
Payloads can be constructed of DuckyScript commands alone, or combined with the power of bash
scripting and system commands to create fully custom, advanced actions.
While the Packet Squirrel supports multiple languages for payloads (such as Python), all example use of the DuckyScript commands will be shown using a bash
based payload. For other, custom payloads, the DuckyScript commands should be executed as system commands.
Ducky Script commands for the Packet Squirrel include:
DYNAMICPROXY
Create a dynamic man-in-the-middle TCP proxy to intercept traffic in NAT
and BRIDGE
modes.
LED
Control the RGB LED on the front of the Packet Squirrel; parameters include color and pattern.
SELFDESTRUCT
Wipe the Packet Squirrel internal storage and attached USB, and reboot into lockdown mode with transparent bridging only.
SWITCH
Reports the current switch position. (This is NOT necessarily the payload currently running, if the switch was moved after boot!)
A simple payload
As an extremely simple demo of payload capabilities, this payload sets the LED color, waits for a button press, then changes the LED color:
Last updated