diff --git a/.github/workflows/CI-winpeas_build_test.yml b/.github/workflows/CI-winpeas_build_test.yml
index 8fd9813..0315b4a 100644
--- a/.github/workflows/CI-winpeas_build_test.yml
+++ b/.github/workflows/CI-winpeas_build_test.yml
@@ -17,8 +17,11 @@ jobs:
# environment variables
env:
- Solution_Path: 'winPEAS\winPEASexe\winPEAS.sln'
+ Solution_Path: 'winPEAS\winPEASexe\winPEAS.sln'
Configuration: 'Release'
+ DotFuscatorLicensePath: '$env:USERPROFILE\AppData\Local\PreEmptive Solutions\Dotfuscator Community Edition\6.0'
+ DotFuscatorGeneratedPath: 'winPEAS\winPEASexe\binaries\Obfuscated Releases\Dotfuscated'
+ DotFuscatorExePath: winPEAS\winPEASexe\Dotfuscator\DotfuscatorCE\dotfuscator.exe
steps:
# checkout
@@ -69,9 +72,35 @@ jobs:
echo "copy Any"
cp winPEAS\winPEASexe\winPEAS\bin\$env:Configuration\winPEAS.exe winPEAS\winPEASexe\binaries\$env:Configuration\winPEASany.exe
+ # build obfuscated versions
+ - name: Setup DotFuscator
+ run: |
+ 7z x winPEAS\winPEASexe\Dotfuscator\DotfuscatorCE.zip
+ mkdir -p "$env:DotFuscatorLicensePath" -erroraction 'silentlycontinue'
+ cp winPEAS\winPEASexe\Dotfuscator\DotfuscatorCE\license\* "$env:DotFuscatorLicensePath\"
+
+ # build obfuscated versions
+ - name: Build obfuscated versions
+ run: |
+ $env:DotFuscatorExePath "winPEAS\winPEASexe\binaries\Obfuscated Releases\x64.xml"
+ $env:DotFuscatorExePath "winPEAS\winPEASexe\binaries\Obfuscated Releases\x32.xml"
+ $env:DotFuscatorExePath "winPEAS\winPEASexe\binaries\Obfuscated Releases\any.xml"
+
+
+ # copy the files
+ - name: Copy Dotfuscator generated files
+ run: |
+ cp "$env:DotFuscatorGeneratedPath\x64\winPEASx64.exe" "winPEAS\winPEASexe\binaries\Obfuscated Releases\winPEASx64.exe"
+ cp "$env:DotFuscatorGeneratedPath\x86\winPEASx86.exe" "winPEAS\winPEASexe\binaries\Obfuscated Releases\winPEASx86.exe"
+ cp "$env:DotFuscatorGeneratedPath\any\winPEASany.exe" "winPEAS\winPEASexe\binaries\Obfuscated Releases\winPEASany.exe"
+
# Git add
- name: Create local changes
- run: git add winPEAS\winPEASexe\binaries\*
+ run: |
+ git add winPEAS\winPEASexe\binaries\Release\*
+ git add winPEAS\winPEASexe\binaries\x64\*
+ git add winPEAS\winPEASexe\binaries\x86\*
+ git add "winPEAS\winPEASexe\binaries\Obfuscated Releases\*.exe"
# Git commit
- name: Commit results to Github
@@ -86,4 +115,3 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
-
\ No newline at end of file
diff --git a/winPEAS/winPEASexe/Dotfuscator/DotfuscatorCE.zip b/winPEAS/winPEASexe/Dotfuscator/DotfuscatorCE.zip
new file mode 100644
index 0000000..f75dfa5
Binary files /dev/null and b/winPEAS/winPEASexe/Dotfuscator/DotfuscatorCE.zip differ
diff --git a/winPEAS/winPEASexe/binaries/Obfuscated Releases/any.xml b/winPEAS/winPEASexe/binaries/Obfuscated Releases/any.xml
new file mode 100644
index 0000000..08fd49b
--- /dev/null
+++ b/winPEAS/winPEASexe/binaries/Obfuscated Releases/any.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/winPEAS/winPEASexe/binaries/Obfuscated Releases/x64.xml b/winPEAS/winPEASexe/binaries/Obfuscated Releases/x64.xml
new file mode 100644
index 0000000..7a57981
--- /dev/null
+++ b/winPEAS/winPEASexe/binaries/Obfuscated Releases/x64.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/winPEAS/winPEASexe/binaries/Obfuscated Releases/x86.xml b/winPEAS/winPEASexe/binaries/Obfuscated Releases/x86.xml
new file mode 100644
index 0000000..9f53d81
--- /dev/null
+++ b/winPEAS/winPEASexe/binaries/Obfuscated Releases/x86.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file