Skip to content
Courses

Challenge 4: Closedown

ChallengesChallenge 4 of 5150 minutesChallenge

The transfer depot files dockets into numbered slots and pins the current draft to the board. At the end of the day it copies its day-end line out, closes the books, and reads the line back to whoever is still standing at the counter.

Your goal is to get the depot to read back more than it meant to.

Download closedown-v1.0.0.tar into ~/underdunn-course/downloads and verify the release digest:

Terminal window
cd ~/underdunn-course/downloads
sha256sum closedown-v1.0.0.tar
ca749f7f46fd03506283aec5d50f686df5f89d9979e65c588bffe6410a31a237 closedown-v1.0.0.tar

Don’t continue if it differs. Download a fresh copy and verify it again.

Terminal window
mkdir -p ~/underdunn-course/labs/closedown
tar -xf closedown-v1.0.0.tar -C ~/underdunn-course/labs/closedown
cd ~/underdunn-course/labs/closedown/closedown-v1.0.0
sha256sum -c CHECKSUMS.sha256
sh build.sh

Every listed file has to report OK. Build it with -Wall -Wextra as well, and notice what you get back. Compare that result with the normal path.

Paste exactly what the depot read back, with no surrounding whitespace:

Enter the complete flag, including UNDERDUNN{ and the closing brace. The check happens in your browser; the flag is not sent anywhere.

The depot keeps no state between runs, and a run that ends badly ends the process. For a full reset of the files:

Terminal window
cd ~/underdunn-course/labs/closedown
rm -rf -- closedown-v1.0.0
tar -xf ~/underdunn-course/downloads/closedown-v1.0.0.tar -C .
cd closedown-v1.0.0
sha256sum -c CHECKSUMS.sha256
sh build.sh

Keep the verified archive and any solver or modified source you want to revisit. Before a reset, copy those files outside the directory being replaced.