From 8969184998a077719c27e9df483b28b7ea77179b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 03:10:53 +0000 Subject: [PATCH 1/3] Bump System.Text.RegularExpressions in /winPEAS/winPEASexe/winPEAS Bumps System.Text.RegularExpressions from 4.3.0 to 4.3.1. --- updated-dependencies: - dependency-name: System.Text.RegularExpressions dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- winPEAS/winPEASexe/winPEAS/App.config | 160 +++++++++++++++++++++ winPEAS/winPEASexe/winPEAS/packages.config | 2 +- winPEAS/winPEASexe/winPEAS/winPEAS.csproj | 5 +- 3 files changed, 163 insertions(+), 4 deletions(-) mode change 100755 => 100644 winPEAS/winPEASexe/winPEAS/App.config mode change 100755 => 100644 winPEAS/winPEASexe/winPEAS/winPEAS.csproj diff --git a/winPEAS/winPEASexe/winPEAS/App.config b/winPEAS/winPEASexe/winPEAS/App.config old mode 100755 new mode 100644 index 2177a05..bd32e42 --- a/winPEAS/winPEASexe/winPEAS/App.config +++ b/winPEAS/winPEASexe/winPEAS/App.config @@ -14,6 +14,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/winPEAS/winPEASexe/winPEAS/packages.config b/winPEAS/winPEASexe/winPEAS/packages.config index 5504070..df86cc8 100644 --- a/winPEAS/winPEASexe/winPEAS/packages.config +++ b/winPEAS/winPEASexe/winPEAS/packages.config @@ -56,7 +56,7 @@ - + diff --git a/winPEAS/winPEASexe/winPEAS/winPEAS.csproj b/winPEAS/winPEASexe/winPEAS/winPEAS.csproj old mode 100755 new mode 100644 index bfb8d5f..fb97ebf --- a/winPEAS/winPEASexe/winPEAS/winPEAS.csproj +++ b/winPEAS/winPEASexe/winPEAS/winPEAS.csproj @@ -284,9 +284,8 @@ ..\packages\System.Text.Encodings.Web.8.0.0\lib\net462\System.Text.Encodings.Web.dll - - ..\packages\System.Text.RegularExpressions.4.3.0\lib\net463\System.Text.RegularExpressions.dll - True + + ..\packages\System.Text.RegularExpressions.4.3.1\lib\net463\System.Text.RegularExpressions.dll True From 8032abdbfc5791e28ba14547e2924b84d8c81137 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:30:11 +0000 Subject: [PATCH 2/3] Bump System.Net.Http from 4.3.0 to 4.3.4 in /winPEAS/winPEASexe/winPEAS Bumps System.Net.Http from 4.3.0 to 4.3.4. --- updated-dependencies: - dependency-name: System.Net.Http dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- winPEAS/winPEASexe/winPEAS/App.config | 2 +- winPEAS/winPEASexe/winPEAS/packages.config | 2 +- winPEAS/winPEASexe/winPEAS/winPEAS.csproj | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/winPEAS/winPEASexe/winPEAS/App.config b/winPEAS/winPEASexe/winPEAS/App.config index bd32e42..1548729 100644 --- a/winPEAS/winPEASexe/winPEAS/App.config +++ b/winPEAS/winPEASexe/winPEAS/App.config @@ -108,7 +108,7 @@ - + diff --git a/winPEAS/winPEASexe/winPEAS/packages.config b/winPEAS/winPEASexe/winPEAS/packages.config index df86cc8..1009216 100644 --- a/winPEAS/winPEASexe/winPEAS/packages.config +++ b/winPEAS/winPEASexe/winPEAS/packages.config @@ -33,7 +33,7 @@ - + diff --git a/winPEAS/winPEASexe/winPEAS/winPEAS.csproj b/winPEAS/winPEASexe/winPEAS/winPEAS.csproj index fb97ebf..2dcd1fd 100644 --- a/winPEAS/winPEASexe/winPEAS/winPEAS.csproj +++ b/winPEAS/winPEASexe/winPEAS/winPEAS.csproj @@ -217,9 +217,8 @@ ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll - - ..\packages\System.Net.Http.4.3.0\lib\net46\System.Net.Http.dll - True + + ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll True From 82fcd44b560ef1ca1bbfd32231260edd1934dedc Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Tue, 1 Oct 2024 17:31:25 +0100 Subject: [PATCH 3/3] fix --- winPEAS/winPEASexe/winPEAS/Info/CloudInfo/GWorkspaceInfo.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/winPEAS/winPEASexe/winPEAS/Info/CloudInfo/GWorkspaceInfo.cs b/winPEAS/winPEASexe/winPEAS/Info/CloudInfo/GWorkspaceInfo.cs index 7d1579c..5ba2e85 100644 --- a/winPEAS/winPEASexe/winPEAS/Info/CloudInfo/GWorkspaceInfo.cs +++ b/winPEAS/winPEASexe/winPEAS/Info/CloudInfo/GWorkspaceInfo.cs @@ -286,8 +286,10 @@ namespace winPEAS.Info.CloudInfo byte[] plaintext = new byte[gcm.GetOutputSize(actualCiphertext.Length)]; int len = gcm.ProcessBytes(actualCiphertext, 0, actualCiphertext.Length, plaintext, 0); - string plaintextString = Encoding.ASCII.GetString(plaintext, 0, len); - gcm.DoFinal(plaintext, len); + int len2 = gcm.DoFinal(plaintext, len); + + string plaintextString = Encoding.ASCII.GetString(plaintext, 0, len+len2-mac.Length); + return plaintextString; }