Skip to content

Commit

Permalink
binsec
Browse files Browse the repository at this point in the history
  • Loading branch information
hpacheco committed Mar 14, 2024
2 parents 01b31bc + 7140cf5 commit f50e6ea
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vm/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ build-klee-taint:
build-klee-taint-ct:
git clone https://github.com/hpacheco/klee-taint-ct
cd klee-taint-ct && sudo docker build -f Dockerfile . -t hugopacheco/klee-taint-ct

build-symsan:
sudo docker build -f symsan.dockerfile . -t hugopacheco/symsan
27 changes: 27 additions & 0 deletions vm/docker/symsan.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ubuntu:jammy

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC

WORKDIR /workdir
RUN apt update && apt install -yq git
RUN git clone https://github.com/R-Fuzz/symsan

RUN apt-get install -y cmake llvm-12 clang-12 libc++-12-dev libc++abi-12-dev python3-minimal python-is-python3 zlib1g-dev git joe libprotobuf-dev
RUN git clone --depth=1 https://github.com/AFLplusplus/AFLplusplus /workdir/aflpp
ENV LLVM_CONFIG=llvm-config-12
RUN cd /workdir/aflpp && CC=clang-12 CXX=clang++-12 make install

RUN apt-get install -y libboost-all-dev libz3-dev libgoogle-perftools-dev libntirpc-dev
RUN apt clean

RUN cd symsan/ && mkdir -p build && \
cd build && CC=clang-12 CXX=clang++-12 cmake -DCMAKE_INSTALL_PREFIX=. -DAFLPP_PATH=/workdir/aflpp ../ && \
make -j4 && make install

ENV KO_CC=clang-12
ENV KO_CXX=clang++-12
ENV KO_USE_FASTGEN=1

0 comments on commit f50e6ea

Please sign in to comment.