From f994a97e022aa18abc8766c47950a693b226845b Mon Sep 17 00:00:00 2001 From: Bu4275 Date: Fri, 3 Jul 2020 15:46:15 +0800 Subject: [PATCH] HTMLEncoded Password in Office365 soap --- LyncSniper.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LyncSniper.ps1 b/LyncSniper.ps1 index bf225d8..df210ea 100755 --- a/LyncSniper.ps1 +++ b/LyncSniper.ps1 @@ -441,6 +441,7 @@ function Invoke-AuthenticateO365 try { + $EncodedPassword = [System.Web.HttpUtility]::HtmlEncode($Password) $soap = @" @@ -454,7 +455,7 @@ function Invoke-AuthenticateO365 $($Username) - $($Password) + $($EncodedPassword) $(([DateTime]::UtcNow.ToString("o")))