No Description
Konrad Beckmann fd99b6c2a8 Makefile: Use rm -f so it doesn't fail on a clean workdir 2 months ago
namespace Makefile: Use rm -f so it doesn't fail on a clean workdir 2 months ago
readme.md Update usage 1 year ago

readme.md

CTF infrastructure for our own CTFs.

namespace

ns is a small tool that listens on a sockets and dup2 stdin and stdout of the binary to the socket

It moves the binary into a mount/uts/net/pid namespace and mounts a sqfs readonly

It copies ctf-binary and flag into a tmpfs before doing pivot_root, it sends all logs to syslog

# Usage
# Setup the sqfs
sudo losetup /dev/loop0 /PATH/TO/root.sqfs
#Symlink to /dev/ctf, this makes it easier to change the sqfs while running
sudo ln -sf /dev/loop0 /dev/ctf

Usage: ./ns (options) [binary] [src_file:dest_file] ...
-p port      Port number (default: 5000)
-h           Print help;