Skip to content

Commit 1f03c21

Browse files
committed
Update MacOS user-agent once more to prevent the server API from expecting to use seamless SSO functionality
1 parent 88cb162 commit 1f03c21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MFASweep.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ Function Invoke-M365WebPortalAuth{
317317
$UserAgent = "Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 635) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537"
318318
}
319319
elseif($UAType -eq "MacOS"){
320-
$UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_7_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15"
320+
# Intentionally using not the most recent version of Safari as the server side then expects to use seamless SSO for authentication
321+
$UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_7_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.5 Safari/605.1.15"
321322
}
322323
else{
323324
Write-Host -ForegroundColor Red "[*] Unknown User Agent Type. Try: Windows, Android, iPhone, Linux, WindowsPhone, or MacOS"

0 commit comments

Comments
 (0)