Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($(Get-WmiObject Win32_Process -Filter "ProcessID=$($PID)").CommandLine -match '-EncodedCommand')
- {
- Write-Warning "EncodedCommandが使われています!"
- $ret = Show-PromptForChoice '<EncodedCommand>' '安全でないコマンドが実行されようとしています、続けますか?' @('いいえ(&N)', 'はい(&Y)')
- if ($ret -ne 1)
- {
- # 続行しない場合は止める
- kill $PID
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement