-
Notifications
You must be signed in to change notification settings - Fork 120
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
Setting up Obfuscator-LLVM #6
Comments
Hi! I will give you my answer here.
step by step
git clone -b llvm-4.0 --depth=1 https://github.com/obfuscator-llvm/obfuscator.git
sudo apt-get install gcc-8 g++-8 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
sudo update-alternatives --config gcc # choose version 8
sudo update-alternatives --config g++ # choose version 8
gcc --version
g++ --version
vim path_to_ollvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h Line number 690. Change
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF ../obfuscator/
make -j7 after one or two hour. You will see Enjoy! Reference link: |
Thank you Did you move the folders /lib and /include to the below location? /usr/lib/clang/version_number @icyguider any ideas what is causing the below errors?
[+] Using explorer.exe for shellcode injection [!] Stub compilation failed! Check stub for errors. |
I built Obfuscator-LLVM and replaced the clang in /usr/bin with the newly built clang. To build I used:
If I run: Did you move the folders /lib and /include to /usr/lib/clang/clang_version I'm unsure about what to do in this below step: Backup existing clang library files, copy new newly built Obfuscator-LLVM library includes to /usr/lib/clang/OLD_VERSION/ I am trying now with the version of Ubuntu you are using Fankaren. I have followed your instructions and ollvm is currently building. |
Essentially you should now just need to replace the system include directory that's seen in the error message you last posted (/usr/include/clang/13.0.1/) with the clang include folder from your ollvm build. Here's how I would do it for your system:
Of course for the last command you will need to give it the build folder of wherever you compiled Obfuscator-LLVM. Hope this works for you. @Fankaren Thanks so much for assisting. I really appreciate it! |
Thank you guys. I really appreciate all your help. I understand now @icyguider Working now. I used Obfuscator-llvm 9.0.1. The below fixed my issue, thanks @icyguider
|
Kali : E: Unable to locate package gcc-8 |
This helped get the proper versions of gcc & g++
|
wget http://ftp.us.debian.org/debian/pool/main/g/gcc-8/libgcc-8-dev_8.3.0-6_amd64.deb on kali , dont work |
Heya mate. Nimcrypt2 is working very well. I just tested it with the Mythic agent Apollo using the raw shellcode.
I managed to get Obfuscator-LLVM working on Windows and integrated it into Visual Studio for another project.
I am having problems getting Obfuscator-LLVM working on Kali though. Which branch did you use?
Could you provide more detailed instructions on how to set it up on Kali please.
The text was updated successfully, but these errors were encountered: