forked from aflsmart/aflsmart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (43 loc) · 1.49 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
46
47
48
49
50
51
FROM ubuntu:xenial
MAINTAINER jaiverma <jai2.verma@outlook.com>
# add afl user
RUN useradd afl \
&& echo "afl:afl" | chpasswd
# install aflsmart dependencies
RUN dpkg --add-architecture i386 \
&& apt-get update -y \
&& apt-get install build-essential -y \
&& apt-get install automake -y \
&& apt-get install libtool -y \
&& apt-get install libc6-dev-i386 -y \
&& apt-get install python-pip -y \
&& apt-get install g++-multilib -y \
&& apt-get install mono-complete -y \
&& apt-get install gnupg-curl -y \
&& apt-get install software-properties-common -y
# install gcc-4.4 required by Peach
RUN add-apt-repository --keyserver hkps://keyserver.ubuntu.com:443 ppa:ubuntu-toolchain-r/test -y \
&& apt-get update -y \
&& apt-get install gcc-4.4 -y \
&& apt-get install g++-4.4 -y \
&& apt-get install git -y \
&& apt-get install wget -y \
&& apt-get install unzip -y \
&& apt-get install tzdata -y
# setup work directory
RUN mkdir -p /home/wd \
&& chown afl:afl /home/wd
WORKDIR /home/wd
USER afl
# setup aflsmart
RUN git clone https://github.com/aflsmart/aflsmart \
&& cd aflsmart \
&& make clean all
WORKDIR /home/wd/aflsmart
# setup peach
RUN wget https://sourceforge.net/projects/peachfuzz/files/Peach/3.0/peach-3.0.202-source.zip \
&& unzip peach-3.0.202-source.zip \
&& patch -p1 < peach-3.0.202.patch \
&& cd peach-3.0.202-source \
&& CC=gcc-4.4 CXX=g++-4.4 ./waf configure \
&& CC=gcc-4.4 CXX=g++4.4 ./waf install