Created
December 11, 2019 14:44
-
-
Save nongiach/257e5103ef21235d56926bc053af38dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:xenial | |
# http://phusion.github.io/baseimage-docker/ | |
RUN apt update && apt install -y socat | |
# This ubuntu is required because we need a very specific version of glibc2.23 | |
# FROM phusion/baseimage:0.11 | |
RUN useradd -ms /bin/bash ctf | |
USER ctf | |
COPY ./chall /chall | |
COPY ./flag.txt / | |
EXPOSE 80/tcp | |
CMD socat -d -d TCP-LISTEN:4242,reuseaddr,fork EXEC:/chall/heapme |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment