#!/bin/sh echo "${FLAG}" > /flag.txt chmod 644 /flag.txt unset FLAG exec telnetd -F -l /app/shell.sh