LogoLogo
DocumentationPayloadsCommunitySupport
  • Packet Squirrel Mark II by Hak5
  • Setup
    • Connecting the Packet Squirrel
    • Setting up the Packet Squirrel
  • Getting Started
    • Changes & New features
    • Packet Squirrel Basics
    • Accessing the Packet Squirrel
    • Web UI
    • Getting the Packet Squirrel online
    • Status LED
    • Cloud C²
    • USB storage support
    • Selecting and editing payloads
    • Configuring payloads
    • Running payloads
    • Networking and modes
  • Networking Tutorial
    • Glossary
    • OSI layers
    • Private IP ranges
    • Network masks
    • Packet injection
    • Translation and redirection
    • Packet capture
  • Payload Development
    • Payload development basics
    • DuckyScript for Packet Squirrel
      • BUTTON
      • C2EXFIL
      • C2NOTIFY
      • C2WATCHDIR
      • DYNAMICPROXY
      • KILLPORT
      • KILLSTREAM
      • LED
      • MATCHPORT
      • MATCHSTREAM
      • NETMODE
      • SELFDESTRUCT
      • SSH_START
      • SSH_STOP
      • SPOOFDNS
      • SWITCH
      • UI_START
      • UI_STOP
      • USB_FREE
      • USB_STORAGE
      • USB_WAIT
  • Advanced payloads
    • Quotes and expansions
    • Flow control
    • Redirecting output
    • Payload configuration
    • Return codes & success
    • Background commands
    • Command groups
    • Processing JSON
    • USB encryption
    • VPN configuration
    • Network manipulation
    • Tips, tricks, & pitfalls
    • Python
  • Payload repository
  • Troubleshooting
    • Troubleshooting networking
    • Troubleshooting payloads
    • Factory reset
  • Software Updates
    • Upgrading firmware
Powered by GitBook
On this page
  • Options
  • Colors
  • Patterns
  • States
  • Experimenting
  • Examples

Was this helpful?

  1. Payload Development
  2. DuckyScript for Packet Squirrel

LED

The LED command controls the RGB LED on the front of the Packet Squirrel.

Options

LED [color] [pattern]

LED [state]

Colors

Color
Result

R

Red

G

Green

B

Blue

Y

Yellow (Red + Green)

C

Cyan (Green + Blue)

M

Magenta (Red + Blue)

W

White (Red + Blue + Green)

Patterns

Pattern
Result

SOLID

No blinking (default)

SLOW

Slow symmetric blinking (1 second ON, 1 second OFF)

FAST

Fast symmetric blinking (100ms ON, 100ms OFF)

VERYFAST

Very fast symmetric blinkig (10ms ON, 10ms OFF)

SINGLE

1 100ms blink ON, 1 second OFF, repreating

DOUBLE

2 100ms blinks ON, 1 second OFF, repeating

TRIPLE

3 100ms blinks ON, 1 second OFF, repeating

QUAD

4 100ms blinks ON, 1 second OFF, repeating

QUIN

5 100ms blinks ON, 1 second OFF, repeating

ISINGLE

1 100ms blink OFF, 1 second ON, repeating

IDOUBLE

2 100ms blinks OFF, 1 second ON, repeating

ITRIPLE

3 100ms blinks OFF, 1 second ON, repeating

IQUAD

4 100ms blinks OFF, 1 second ON, repeating

IQUIN

5 100ms blinks OFF, 1 second ON, repeating

SUCCESS

1 second VERYFAST, followed by SOLID

States

Instead of setting a color+pattern, the LED command can also be used to set a standard color code for a state.

State
Pattern

SETUP

M SOLID

FAIL

R SLOW

FAIL1

R SLOW

FAIL2

R FAST

FAIL3

R VERYFAST

ATTACK

Y SINGLE

STAGE1

Y SINGLE

STAGE2

Y DOUBLE

STAGE3

Y TRIPLE

STAGE4

Y QUAD

STAGE5

Y QUIN

SPECIAL

C ISINGLE

SPECIAL1

C ISINGLE

SPECIAL2

C IDOUBLE

SPECIAL3

C ITRIPLE

SPECIAL4

C IQUAD

SPECIAL5

C IQUIN

CLEANUP

W FAST

FINISH

G SUCCESS

OFF

Experimenting

You can experiment using the LED command live, either in the Web Shell in the web UI, or via ssh!

Examples

#!/bin/bash

# Title: LED demo
# Description: Set the LED to various states

NETMODE NAT

LED G SOLID
sleep 5
LED SPECIAL5
sleep 5
LED CLEANUP
sleep 5
LED M VERYFAST

Last updated 2 years ago

Was this helpful?

Running the LED command from theweb UI Web Shell.