From 74182fce71074c524fc20e72d176dc67a428f892 Mon Sep 17 00:00:00 2001 From: lutzenfried Date: Tue, 9 Nov 2021 14:00:23 -0500 Subject: [PATCH] Update MSOLSpray.ps1 Current state do not display to user or within outfile if username is correct and password incorrect, this could increase account lockout as user does not have information regarding incorrect password. --- MSOLSpray.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MSOLSpray.ps1 b/MSOLSpray.ps1 index 3327392..02123a2 100644 --- a/MSOLSpray.ps1 +++ b/MSOLSpray.ps1 @@ -110,7 +110,7 @@ # Standard invalid password If($RespErr -match "AADSTS50126") { - continue + Write-Host -ForegroundColor "red" "[*] VALID user but INVALID password : $username" } # Invalid Tenant Response @@ -202,4 +202,4 @@ Write-Output "Results have been written to $OutFile." } } -} \ No newline at end of file +}