This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
netsec-djw2/hw5/Dockerfile
2024-06-04 15:49:28 -07:00

36 lines
932 B
Docker

# syntax=docker/dockerfile-upstream:master-labs
FROM ubuntu:18.04
RUN apt-get -y update && \
apt-get -y install sudo \
apt-utils \
build-essential \
openssl \
clang \
graphviz-dev \
git \
libcap-dev
# Download and compile AFLNet
ENV LLVM_CONFIG="llvm-config-6.0"
RUN git clone https://github.com/aflnet/aflnet.git /opt/aflnet && cd /opt/aflnet && make clean all && cd llvm_mode && make
#WORKDIR /opt/aflnet
# Set up environment variables for AFLNet
ENV AFLNET="/opt/aflnet"
ENV PATH="${PATH}:${AFLNET}"
ENV AFL_PATH="${AFLNET}"
ENV AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 \
AFL_SKIP_CPUFREQ=1
ENV WORKDIR="/home/testing"
RUN mkdir -p /home/testing/
RUN cd $WORKDIR && \
git clone https://github.com/rgaufman/live555.git && \
cd live555 && \
git checkout ceeb4f4 && \
patch -p1 < $AFLNET/tutorials/live555/ceeb4f4_states_decomposed.patch && \
./genMakefiles linux && \
make clean all