Update exit.ps1

This commit is contained in:
I-Am-Jakoby 2022-12-25 10:53:15 -06:00 committed by GitHub
parent ccea107fcf
commit f1a463d5ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,10 @@
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')
while($true){
if((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt")){
if((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt") -or $Rctrl -and $Lctrl){
sleep 10
Remove-Item "$env:appdata\-locker" -Recurse -Force;
Remove-Item "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\-p.cmd"