File tree Expand file tree Collapse file tree 4 files changed +29
-8
lines changed
Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,6 @@ FROM ubuntu:16.04
33RUN mkdir /work
44WORKDIR /work
55
6- # g++-4.8-arm-linux-gnueabihf \
7- # gcc-4.8-arm-linux-gnueabihf \
8- # gcc-4.8-multilib-arm-linux-gnueabihf \
9- # binutils-arm-linux-gnueabihf \
10- # libgcc1-armhf-cross \
11- # libsfgcc1-armhf-cross \
12- # libstdc++6-armhf-cross \
13-
146
157RUN apt-get update \
168 && apt-get install -y build-essential \
@@ -22,6 +14,13 @@ RUN apt-get update \
2214 llvm-4.0-dev \
2315 clang-4.0 \
2416 git \
17+ g++-4.8-arm-linux-gnueabihf \
18+ gcc-4.8-arm-linux-gnueabihf \
19+ gcc-4.8-multilib-arm-linux-gnueabihf \
20+ binutils-arm-linux-gnueabihf \
21+ libgcc1-armhf-cross \
22+ libsfgcc1-armhf-cross \
23+ libstdc++6-armhf-cross \
2524 python
2625
2726RUN git clone --depth=1 --single-branch -b llvm-4.0 https://github.com/obfuscator-llvm/obfuscator.git obfuscator-llvm
Original file line number Diff line number Diff line change 1+ all : normal obfuscated
2+
3+ normal :
4+ clang++ test.cc -o test-cxx -I /usr/arm-linux-gnueabihf/include -L /usr/arm-linux-gnueabi/libhf -ccc-gcc-name arm-linux-gnueabihf-gcc --target=arm-linux-gnueabihf -mfloat-abi=hard -mcpu=cortex-a9 -I /usr/arm-linux-gnueabihf/include/c++/4.8.5/ -L /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/ -I /usr/arm-linux-gnueabihf/include/c++/4.8.5/arm-linux-gnueabihf
5+ clang test.c -o test-c -I /usr/arm-linux-gnueabihf/include -L /usr/arm-linux-gnueabi/libhf -ccc-gcc-name arm-linux-gnueabihf-gcc --target=arm-linux-gnueabihf -mfloat-abi=hard -mcpu=cortex-a9
6+
7+ obfuscated :
8+ clang++ test.cc -o test-cxx-obf -I /usr/arm-linux-gnueabihf/include -L /usr/arm-linux-gnueabi/libhf -ccc-gcc-name arm-linux-gnueabihf-gcc --target=arm-linux-gnueabihf -mfloat-abi=hard -mcpu=cortex-a9 -mllvm -sub -mllvm -bcf -mllvm -fla -I /usr/arm-linux-gnueabihf/include/c++/4.8.5/ -L /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/ -I /usr/arm-linux-gnueabihf/include/c++/4.8.5/arm-linux-gnueabihf
9+ clang test.c -o test-c-obf -I /usr/arm-linux-gnueabihf/include -L /usr/arm-linux-gnueabi/libhf -ccc-gcc-name arm-linux-gnueabihf-gcc --target=arm-linux-gnueabihf -mfloat-abi=hard -mcpu=cortex-a9 -mllvm -sub -mllvm -bcf -mllvm -fla
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+
3+ int main (int argc , const char * argv []) {
4+ printf ("Hello World!\n" );
5+ return 0 ;
6+ }
Original file line number Diff line number Diff line change 1+ #include < iostream>
2+
3+ int main (int argc, const char * argv[]) {
4+
5+ std::cout << " Hello World!" << std::endl;
6+ return 0 ;
7+ }
You can’t perform that action at this time.
0 commit comments