add deprecated banner for ps1 version

This commit is contained in:
John Uhlmann
2026-02-25 14:01:37 +08:00
parent edbff70fc2
commit 30a2ea684b
+18
View File
@@ -98,6 +98,24 @@ function Get-InjectedThreadEx
[UInt32]$ProcessId
)
$bannerWidth = 74
$pad = { param($s) " $s" + (' ' * [Math]::Max(0, $bannerWidth - 4 - $s.Length)) + " " }
$blank = ' ' * $bannerWidth
$lines = @(
$blank
(& $pad "=== DEPRECATED ===")
(& $pad "")
(& $pad "Get-InjectedThreadEx.ps1 was deprecated in September 2023.")
(& $pad "It was replaced by Get-InjectedThreadEx.exe")
(& $pad "")
(& $pad "https://github.com/jdu2600/Get-InjectedThreadEx/releases")
$blank
)
foreach ($line in $lines) {
Write-Host $line -BackgroundColor DarkCyan -ForegroundColor Yellow
}
Write-Host ""
if(![Environment]::Is64BitProcess)
{
Write-Warning "32-bit not currently supported."