Skip to content

Deploy

Deployment configuration for the "heap1" challenge. Uses xinetd inside a Docker container to serve the challenge over TCP.

Prerequisites

Ensure ../publish/ contains chall, libc.so.6, and ld-linux-x86-64.so.2 (see ../build/README.md and ../publish/README.md), and that ../flag exists (the flag file for this challenge).

Building the image

The build context must be the parent directory (..), so files from publish/, deploy/, and the flag file can all be copied in:

docker build -t heap1-deploy -f Dockerfile ..

Running the container

docker run -d --rm -p 31011:31337 --name heap1-container heap1-deploy

The challenge is now reachable at localhost:31011:

nc localhost 31011

Stopping the container

docker stop heap1-container