Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String obfuscation NOT obfuscating in Windows #31

Open
pedroflor opened this issue Sep 5, 2022 · 1 comment
Open

String obfuscation NOT obfuscating in Windows #31

pedroflor opened this issue Sep 5, 2022 · 1 comment

Comments

@pedroflor
Copy link

String obfuscation NOT obfuscating in Windows
Patch & build in Linux, String obfuscation works properly.
Patch & build in Windows, String obfuscation simple doesn't works.

Build process:
cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi" -DLLVM_ENABLE_ASSERTIONS=No -DLLVM_ENABLE_NEW_PASS_MANAGER=Off

Compiling with string obfuscation option -mmlvm -sobf
C:\>\llvm-project_14.x\build\bin\clang.exe -mllvm -sobf hello.c -o hello.exe

Source code to test
image

Results of the compiled source code with -mllvm -sobf
image
As seen in the image, the strings remains intact (not obfuscated).

Software:

  • OS: Windows 10
  • Visual Studio 2022
  • LLVM 14.0.6
  • cflag: -mllvm -sobf
@vvdhsb
Copy link

vvdhsb commented Jan 15, 2024

String obfuscation NOT obfuscating in Windows Patch & build in Linux, String obfuscation works properly. Patch & build in Windows, String obfuscation simple doesn't works.

Build process: cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi" -DLLVM_ENABLE_ASSERTIONS=No -DLLVM_ENABLE_NEW_PASS_MANAGER=Off

Compiling with string obfuscation option -mmlvm -sobf C:\>\llvm-project_14.x\build\bin\clang.exe -mllvm -sobf hello.c -o hello.exe

Source code to test image

Results of the compiled source code with -mllvm -sobf image As seen in the image, the strings remains intact (not obfuscated).

Software:

  • OS: Windows 10
  • Visual Studio 2022
  • LLVM 14.0.6
  • cflag: -mllvm -sobf

Did you ever get this working? Also could the error be caused by you disabling the newpass?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants