forked from vanhauser-thc/afl-dyninst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (36 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:20.04
LABEL "maintainer"="[email protected]"
LABEL "about"="afl-dyninst docker image"
ARG DEBIAN_FRONTEND=noninteractive
ARG BUILD_RTLIB_32=ON
RUN dpkg --add-architecture i386
RUN apt-get update && apt-get -y install \
git \
tar \
gzip \
curl \
build-essential \
cmake \
libelf-dev \
libelf1 \
libiberty-dev \
libboost-all-dev \
libtbb2 \
libtbb-dev && rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/dyninst/dyninst \
&& cd dyninst && mkdir build && cd build \
&& cmake .. \
&& make \
&& make install
RUN git clone https://github.com/vanhauser-thc/AFLplusplus \
&& cd AFLplusplus \
&& make source-only \
&& make install \
&& cd ..
RUN git clone https://github.com/vanhauser-thc/afl-dyninst \
&& cd afl-dyninst \
&& ln -s /AFLplusplus afl \
&& make && make install
RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/dyninst.conf && ldconfig \
&& echo "export DYNINSTAPI_RT_LIB=/usr/local/lib/libdyninstAPI_RT.so" >> .bashrc
ENV DYNINSTAPI_RT_LIB /usr/local/lib/libdyninstAPI_RT.so