This training exercise is based on a Debian/Bullseye system running SE Linux in a default configuration in Enforcing mode. To set it up put the following in /usr/local/sbin/adaemon.sh and make it mode 0755:
#!/bin/bash echo -100 > /proc/$$/oom_score_adj while true ; do /sbin/runuser -u nobody — /bin/nc -q0 -l -p 4000 < $0 /bin/sleep 1 [...]