# SELFDESTRUCT

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.

{% hint style="danger" %}
**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 [Factory Reset](https://olddocs.hak5.org/packet-squirrel-mark-ii/troubleshooting/factory-reset) process.
{% endhint %}

## 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 [Factory Reset](https://olddocs.hak5.org/packet-squirrel-mark-ii/troubleshooting/factory-reset) 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.
