Update Dockerfile for Angora install

This commit is contained in:
ex0dus-0x
2019-06-26 13:59:10 -04:00
parent 8d005f0a2c
commit 4e78fe9114
+16 -1
View File
@@ -38,6 +38,10 @@ RUN apt-get update \
&& apt-get update \
&& apt-get install -y dotnet-sdk-2.2
# Install Angora dependencies
RUN apt-get install -y rustc \
&& apt-get install -y cargo
# Install DeepState/AFL/libFuzzer dependencies
RUN apt-get update \
&& apt-get install -y build-essential \
@@ -64,7 +68,15 @@ RUN git clone https://github.com/SoftSec-KAIST/Eclipser \
&& make \
&& cd ../
# Install DeepState using a few different compilers for AFL/libFuzzer/Eclipser+normal
# Install Angora
RUN git clone https://github.com/AngoraFuzzer/Angora \
&& cd Angora \
&& ./build/build.sh \
&& cd ../
ENV ANGORA=/home/user/Angora
# Install DeepState using a few different compilers for AFL/libFuzzer/Eclipser/Angora+normal
RUN cd deepstate \
&& rm -Rf CMakeFiles CMakeCache.txt \
&& rm -Rf build \
@@ -76,6 +88,9 @@ RUN cd deepstate \
&& rm -rf CMakeFiles CMakeCache.txt \
&& CXX=clang++ CC=clang BUILD_LIBFUZZER=TRUE cmake ../ \
&& sudo make install \
&& rm -rf CMakeFiles CMakeCache.txt \
&& CXX=$ANGORA/bin/angora-clang++ CC=$ANGORA/bin/angora-clang cmake ../ \
&& export USE_TRACK=1 && sudo -E bash -c 'make -i install' \
&& cd .. \
&& sudo pip3 install 'z3-solver==4.5.1.0.post2' angr 'manticore==0.2.5' \
&& sudo python3 ./build/setup.py install