No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Franz Levin a68c0f9edb Added rate limiting per IP 2 years ago
namespace Added rate limiting per IP 2 years ago
readme.md Fix typo 2 years 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

sudo ./ns /FULL/PATH/TO/CTF /FULL/PATH/TO/FLAG PORT