From ebd5a4050e3e322d3b0a6df1ded8fbc053bad9cd Mon Sep 17 00:00:00 2001 From: Zenomat Date: Wed, 22 Mar 2023 09:18:28 +0100 Subject: [PATCH] change outdir for build in solution and dotfuscator config According to the docs and the dotfuscator config, the outdir should be under `winPEASexe/binaries` and not `winPEASexe/winPEAS/bin` This makes it so, that no user changes are neccesarry for dotfuscator usage. Also improves the docs a bit --- winPEAS/winPEASexe/README.md | 9 +++++---- winPEAS/winPEASexe/binaries/Obfuscated Releases/any.xml | 2 +- winPEAS/winPEASexe/binaries/Obfuscated Releases/x64.xml | 2 +- winPEAS/winPEASexe/binaries/Obfuscated Releases/x86.xml | 2 +- winPEAS/winPEASexe/winPEAS/winPEAS.csproj | 6 +++--- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/winPEAS/winPEASexe/README.md b/winPEAS/winPEASexe/README.md index ce7327e..5c8a9c9 100755 --- a/winPEAS/winPEASexe/README.md +++ b/winPEAS/winPEASexe/README.md @@ -121,14 +121,15 @@ In order to compile an **ofuscated version** of Winpeas and bypass some AVs you To install it *open VisualStudio --> Go to Search (CTRL+Q) --> Write "dotfuscator"* and just follow the instructions to install it. -To use **dotfuscator** you will need to **create an account** *(they will send you an email to the address you set during registration*). +To use **dotfuscator** you can **create an account** *(they will send you an email to the address you set during registration*) to get access to updates and some additional features. It is also possible to skip that step and obfuscate winPEAS, just hit `cancel`. Once you have installed and activated it you need to: -1. **Compile** winpeas in VisualStudio +1. **Compile** winpeas in VisualStudio, for Release 2. **Open dotfuscator** app -3. **Open** in dotfuscator **winPEAS.exe compiled** +3. **Open the dotfuscator config** from `binaries/Obfuscated Releases/` + - replace `architecture` with the architecture, which you compiled (x86, x86, any) 4. Click on **Build** -5. The **single, minimized and obfuscated binary** will appear in a **folder called Dotfuscator inside the folder were winPEAS.exe** and the DLL were (this location will be saved by dotfuscator and by default all the following builds will appear in this folder). +5. The **single, minimized and obfuscated binary** will appear in `binaries/Obfuscated Releases/Dotfuscated/` and the DLL were (this location will be saved by dotfuscator and by default all the following builds will appear in this folder). **I'm sorry that all of this is necessary but is worth it. Dotfuscator minimizes a bit the size of the executable and obfuscates the code**. diff --git a/winPEAS/winPEASexe/binaries/Obfuscated Releases/any.xml b/winPEAS/winPEASexe/binaries/Obfuscated Releases/any.xml index 08fd49b..bd067d8 100644 --- a/winPEAS/winPEASexe/binaries/Obfuscated Releases/any.xml +++ b/winPEAS/winPEASexe/binaries/Obfuscated Releases/any.xml @@ -14,7 +14,7 @@ - + diff --git a/winPEAS/winPEASexe/binaries/Obfuscated Releases/x64.xml b/winPEAS/winPEASexe/binaries/Obfuscated Releases/x64.xml index 7a57981..d249758 100644 --- a/winPEAS/winPEASexe/binaries/Obfuscated Releases/x64.xml +++ b/winPEAS/winPEASexe/binaries/Obfuscated Releases/x64.xml @@ -14,7 +14,7 @@ - + diff --git a/winPEAS/winPEASexe/binaries/Obfuscated Releases/x86.xml b/winPEAS/winPEASexe/binaries/Obfuscated Releases/x86.xml index 9f53d81..d53c975 100644 --- a/winPEAS/winPEASexe/binaries/Obfuscated Releases/x86.xml +++ b/winPEAS/winPEASexe/binaries/Obfuscated Releases/x86.xml @@ -14,7 +14,7 @@ - + diff --git a/winPEAS/winPEASexe/winPEAS/winPEAS.csproj b/winPEAS/winPEASexe/winPEAS/winPEAS.csproj index eb90fe8..47fd38a 100755 --- a/winPEAS/winPEASexe/winPEAS/winPEAS.csproj +++ b/winPEAS/winPEASexe/winPEAS/winPEAS.csproj @@ -47,7 +47,7 @@ AnyCPU pdbonly true - bin\Release\ + ..\binaries\Release TRUE WIN32 _MSC_VER NDEBUG NO_TCL SQLITE_ASCII SQLITE_DISABLE_LFS SQLITE_ENABLE_OVERSIZE_CELL_CHECK SQLITE_MUTEX_OMIT SQLITE_OMIT_AUTHORIZATION SQLITE_OMIT_DEPRECATED SQLITE_OMIT_GET_TABLE SQLITE_OMIT_INCRBLOB SQLITE_OMIT_LOOKASIDE SQLITE_OMIT_SHARED_CACHE SQLITE_OMIT_UTF16 SQLITE_OMIT_VIRTUALTABLE SQLITE_OS_WIN SQLITE_SYSTEM_MALLOC VDBE_PROFILE_OFF prompt 4 @@ -74,7 +74,7 @@ 0168 ; 0169; 0414; 0618; 0649 - bin\x64\Release\ + ..\binaries\x64\Release\ TRUE WIN32 _MSC_VER NDEBUG NO_TCL SQLITE_ASCII SQLITE_DISABLE_LFS SQLITE_ENABLE_OVERSIZE_CELL_CHECK SQLITE_MUTEX_OMIT SQLITE_OMIT_AUTHORIZATION SQLITE_OMIT_DEPRECATED SQLITE_OMIT_GET_TABLE SQLITE_OMIT_INCRBLOB SQLITE_OMIT_LOOKASIDE SQLITE_OMIT_SHARED_CACHE SQLITE_OMIT_UTF16 SQLITE_OMIT_VIRTUALTABLE SQLITE_OS_WIN SQLITE_SYSTEM_MALLOC VDBE_PROFILE_OFF true pdbonly @@ -98,7 +98,7 @@ true - bin\x86\Release\ + ..\binaries\x86\Release\ TRUE WIN32 _MSC_VER NDEBUG NO_TCL SQLITE_ASCII SQLITE_DISABLE_LFS SQLITE_ENABLE_OVERSIZE_CELL_CHECK SQLITE_MUTEX_OMIT SQLITE_OMIT_AUTHORIZATION SQLITE_OMIT_DEPRECATED SQLITE_OMIT_GET_TABLE SQLITE_OMIT_INCRBLOB SQLITE_OMIT_LOOKASIDE SQLITE_OMIT_SHARED_CACHE SQLITE_OMIT_UTF16 SQLITE_OMIT_VIRTUALTABLE SQLITE_OS_WIN SQLITE_SYSTEM_MALLOC VDBE_PROFILE_OFF true pdbonly