Special Commands

Special Commands

The NJCTR3000 comes with a set of unique DuckyScript commands that extend the functionality beyond the standard DuckyScript. These commands allow interaction with specific hardware features, visual feedback, and network variables.

Special Commands Overview

Command Description
RED Changes the logo color to red, providing visual feedback during script execution.
GREEN Changes the logo color to green, providing visual feedback during script execution.
BLUE Changes the logo color to blue, providing visual feedback during script execution.
WIFI_SSID Inserts the current Wi-Fi SSID as a string.
WIFI_IP Inserts the current Wi-Fi IP address as a string.
WIFI_PW Inserts the current Wi-Fi password as a string.
WAIT_FOR_BUTTON Pauses execution until the user presses the physical button on the NJCTR3000.

Example Usage of Special Commands

Let’s take a look at how these special commands can be used in a practical scenario. In this example, we’ll:

  • Change the logo color to RED.
  • Wait for a button press to continue.
  • Display the current Wi-Fi SSID and IP.
  • Change the logo color to GREEN upon successful connection.

DuckyScript Example

DELAY 500
REM Change the logo color to red to indicate script start
RED
DELAY 1000

REM Wait for the user to press the button before proceeding
WAIT_FOR_BUTTON
BLUE
REM Turn the logo blue to indicate script in progress


GUI r
DELAY 100
STRING notepad.exe
DELAY 500

REM Output the Wi-Fi SSID and IP
STRING NJCTR3000 Wi-Fi network name: {WIFI_SSID}
ENTER
STRING Device IP address: {WIFI_IP}
ENTER

REM Change the logo color to green to indicate successful connection
GREEN
DELAY 5000

Explanation of Key Actions:

  • RED : Sets the NJCTR3000’s logo to red as a visual indicator that the script is stopped waiting for input.
  • WAIT_FOR_BUTTON : Pauses the script until the user physically presses the button on the NJCTR3000, providing manual control over the timing of script actions.
  • BLUE : Sets the NJCTR3000’s logo to blue as a visual indicator that the script is running.
  • {WIFI_SSID} and {WIFI_IP} : These placeholders dynamically insert the current Wi-Fi SSID and IP address, which is useful for debugging or showing network status during payload execution.
  • GREEN : Changes the logo to green to indicate that the script has successfully completed its network-related tasks.