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
  • Recovering

Was this helpful?

  1. Payload Development
  2. DuckyScript for Packet Squirrel

SELFDESTRUCT

Last updated 2 years ago

Was this helpful?

The SELFDESTRUCT command acts as a panic button to fully reset a Packet Squirrel and place it into NETMODE TRANSPARENT.

Calling SELFDESTRUCT will erase the contents of the USB drive, perform a factory reset, set a flag in the Packet Squirrel parameters to enter transparent networking mode only, and reboot.

THE SELFDESTRUCT COMMAND WILL ERASE ALL DATA ON YOUR DEVICE

SELFDESTRUCT is meant as a panic-button during a red team exercise to wipe the contents of a Packet Squirrel and render the device invisible on the network.

To recover a Packet Squirrel which has been reset via SELFDESTRUCT you must then perform an additional process.

Options

The SELFDESTRUCT command requires an additional argument to trigger, due to the destructive nature of the command:

SELFDESTRUCT --really-do-this

Recovering

The SELFDESTRUCT command will set a flag on the Packet Squirrel which places it in transparent networking mode and prevents the setup process from running.

To recover a device which has been reset via SELFDESTRUCT, you must perform an additional process, however the device will not indicate it has finished booting and will not light the LED.

Set the device to Arming Mode, plug in the power to the USB-C port, and wait approximately 5 minutes, then press and hold the push button for 20 seconds. The LED will blink red and the device will reboot into the normal setup process.

Factory Reset
Factory Reset