From d7ff3d163f7303fb5559bcaed62ab5fa48cfb478 Mon Sep 17 00:00:00 2001 From: David Nibbe Date: Wed, 6 Apr 2022 18:59:44 -0500 Subject: [PATCH] Add support for Error Code AADSTS53003 --- MSOLSpray.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MSOLSpray.ps1 b/MSOLSpray.ps1 index 3327392..9ef18c6 100644 --- a/MSOLSpray.ps1 +++ b/MSOLSpray.ps1 @@ -139,6 +139,13 @@ $fullresults += "$username : $password" } + #Conditional Access response (access policy blocks token issuance). + ElseIf($RespErr -match "AADSTS53003") + { + Write-Host -ForegroundColor "green" "[*] SUCCESS! $username : $password - NOTE: The response indicates a conditional access policy is in place and the policy blocks token issuance." + $fullresults += "$username : $password" + } + # Locked out account or Smart Lockout in place ElseIf($RespErr -match "AADSTS50053") {