From b8adc7af3bf0d87a5770fd4cee15a1b77f7d9a08 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Tue, 1 Oct 2024 04:06:15 +0100 Subject: [PATCH] gcpw.test --- winPEAS/winPEASexe/Tests/App.config | 2 +- winPEAS/winPEASexe/Tests/FodyWeavers.xml | 3 + winPEAS/winPEASexe/Tests/FodyWeavers.xsd | 141 ++++++++++++++++++ winPEAS/winPEASexe/Tests/packages.config | 40 ++++- winPEAS/winPEASexe/Tests/winPEAS.Tests.csproj | 18 ++- winPEAS/winPEASexe/winPEAS/winPEAS.csproj | 4 +- 6 files changed, 201 insertions(+), 7 deletions(-) create mode 100644 winPEAS/winPEASexe/Tests/FodyWeavers.xml create mode 100644 winPEAS/winPEASexe/Tests/FodyWeavers.xsd diff --git a/winPEAS/winPEASexe/Tests/App.config b/winPEAS/winPEASexe/Tests/App.config index 9acd6ec..dc08034 100644 --- a/winPEAS/winPEASexe/Tests/App.config +++ b/winPEAS/winPEASexe/Tests/App.config @@ -5,7 +5,7 @@
- + diff --git a/winPEAS/winPEASexe/Tests/FodyWeavers.xml b/winPEAS/winPEASexe/Tests/FodyWeavers.xml new file mode 100644 index 0000000..5029e70 --- /dev/null +++ b/winPEAS/winPEASexe/Tests/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/winPEAS/winPEASexe/Tests/FodyWeavers.xsd b/winPEAS/winPEASexe/Tests/FodyWeavers.xsd new file mode 100644 index 0000000..05e92c1 --- /dev/null +++ b/winPEAS/winPEASexe/Tests/FodyWeavers.xsd @@ -0,0 +1,141 @@ + + + + + + + + + + + + A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks + + + + + A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. + + + + + A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks + + + + + A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. + + + + + A list of unmanaged 32 bit assembly names to include, delimited with line breaks. + + + + + A list of unmanaged 64 bit assembly names to include, delimited with line breaks. + + + + + The order of preloaded assemblies, delimited with line breaks. + + + + + + This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. + + + + + Controls if .pdbs for reference assemblies are also embedded. + + + + + Controls if runtime assemblies are also embedded. + + + + + Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. + + + + + Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. + + + + + As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. + + + + + Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. + + + + + Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. + + + + + A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | + + + + + A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. + + + + + A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | + + + + + A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. + + + + + A list of unmanaged 32 bit assembly names to include, delimited with |. + + + + + A list of unmanaged 64 bit assembly names to include, delimited with |. + + + + + The order of preloaded assemblies, delimited with |. + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/winPEAS/winPEASexe/Tests/packages.config b/winPEAS/winPEASexe/Tests/packages.config index 220e9ba..6bc14ee 100644 --- a/winPEAS/winPEASexe/Tests/packages.config +++ b/winPEAS/winPEASexe/Tests/packages.config @@ -1,14 +1,48 @@  + + + + - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/winPEAS/winPEASexe/Tests/winPEAS.Tests.csproj b/winPEAS/winPEASexe/Tests/winPEAS.Tests.csproj index b7cfe80..db5fa88 100644 --- a/winPEAS/winPEASexe/Tests/winPEAS.Tests.csproj +++ b/winPEAS/winPEASexe/Tests/winPEAS.Tests.csproj @@ -1,5 +1,6 @@  + @@ -12,12 +13,13 @@ Library Tests Tests - v4.5.2 + v4.8 512 true true + AnyCPU @@ -45,6 +47,9 @@ ..\packages\Portable.BouncyCastle.1.9.0\lib\net40\BouncyCastle.Crypto.dll + + ..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll + ..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll @@ -61,6 +66,7 @@ ..\packages\MSTest.TestFramework.2.2.5\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + @@ -72,6 +78,11 @@ ..\packages\System.Data.SQLite.Linq.1.0.119.0\lib\net451\System.Data.SQLite.Linq.dll + + + + ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll + @@ -107,10 +118,15 @@ + + + + + \ No newline at end of file diff --git a/winPEAS/winPEASexe/winPEAS/winPEAS.csproj b/winPEAS/winPEASexe/winPEAS/winPEAS.csproj index e5fd000..bfb8d5f 100755 --- a/winPEAS/winPEASexe/winPEAS/winPEAS.csproj +++ b/winPEAS/winPEASexe/winPEAS/winPEAS.csproj @@ -1508,9 +1508,9 @@ - + False - Microsoft .NET Framework 4.5.2 %28x86 and x64%29 + Microsoft .NET Framework 4.8 %28x86 and x64%29 true