Skip to content

Instantly share code, notes, and snippets.

@nongiach
Created December 11, 2019 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nongiach/257e5103ef21235d56926bc053af38dc to your computer and use it in GitHub Desktop.
Save nongiach/257e5103ef21235d56926bc053af38dc to your computer and use it in GitHub Desktop.
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