Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
FROM debian:10-slim as builder
RUN apt-get update && apt-get install -y build-essential wget libc6-dbg
WORKDIR /build
RUN wget https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.15.tar.gz \
&& tar xf lighttpd-1.4.15.tar.gz \
&& cd /build/lighttpd-1.4.15 \
&& CFLAGS=-g ./configure --without-bzip2 && CFLAGS=-g make && make install \
&& mkdir /www && echo "lighttpd 1.4.15 running!" > /www/index.html
RUN wget https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.52.tar.gz \
&& tar xf lighttpd-1.4.52.tar.gz \
&& cd /build/lighttpd-1.4.52 \
&& CFLAGS=-g ./configure --without-bzip2 --without-pcre --without-zlib && CFLAGS=-g make && make install \
&& mkdir /www && echo "lighttpd 1.4.52 running!" > /www/index.html
COPY lighttpd.conf /usr/local/etc
WORKDIR /
COPY corpus /corpus
CMD ["/usr/local/sbin/lighttpd","-D", "-f","/usr/local/etc/lighttpd.conf"]
EXPOSE 80

FROM debian:10-slim
RUN apt-get update && apt-get install -y --no-install-recommends libc6-dbg
# Don't set workdir! corpus is relative to /
COPY corpus /corpus
RUN apt-get update && apt-get install -y libc6-dbg
COPY --from=builder /usr/local /usr/local
RUN mkdir /www && echo "lighttpd 1.4.15 running!" > /www/index.html
RUN mkdir /www && echo "lighttpd 1.4.52 running!" > /www/index.html
CMD ["/usr/local/sbin/lighttpd","-D", "-f","/usr/local/etc/lighttpd.conf"]
EXPOSE 80
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: '1.16' # all these fields
baseimage: forallsecure/lighttpd:vulnerable # are unnecessary
baseimage: forallsecure/lighttpd:fixed # are unnecessary
duration: 300 # since they will
project: forallsecure/lighttpd # be filled at
target: lighttpd # run creation time
Expand Down