# Immediate Shutdown - By NexusWannaBe

<div align=center>

<img src="https://github.com/aleff-github/my-flipper-shits/blob/main/img/logo-repository-2_0.gif" width="600" /><br><img src="https://github.com/aleff-github/my-flipper-shits/blob/main/img/DISCLAIMER.png" width="600" />

</div>

This DuckyScript, created by [NexusWannaBe](https://github.com/NexusWannaBe), is designed to **immediately shut down** a Windows system upon inserting a Rubber Ducky or any compatible DuckyScript device. The script opens the **cmd** terminal and issues a shutdown command with no delay, causing the system to shut down immediately.

## How it works

The script follows these steps:
1. Waits for 1 second (`DELAY 1000`).
2. Uses the **Windows + R** shortcut to open the "Run" dialog.
3. Types `cmd` to open the command prompt.
4. Waits half a second and presses **Enter**.
5. Once the terminal is open, it types `shutdown /s /f /t 0`, which forces an immediate shutdown with zero delay.
6. The system shuts down immediately without further input.

### Shutdown command:
- `shutdown /s /f /t 0`: forces an immediate shutdown of Windows, closing all running applications without warning or delay.
  - `/s`: initiates the shutdown.
  - `/f`: forces running applications to close.
  - `/t 0`: sets the shutdown timer to zero, making it instantaneous.

## Warnings

- **Use with caution!** This script shuts down the system instantly, with no chance to save open files or processes.
- This script is for educational purposes and should only be used legally and with permission from the system owner.
