This writeup outlines a solution for Locking Mechanism and also my thought process in solving it. This was my first time doing a CTF and my very first solve ever.
We're given a Dockerized Rust application, but I decided to build the code directly on my machine since I already had Cargo
installed and up to date. I'm not that well-versed in Rust yet (I solved a few Advent of Code problems in it), but I know
enough to poke around. The first thing I tried was to just cargo build
and cargo run
the application and see what happens.
It didn't halt, so upon looking at the code it looked like it was expecting an input of comma-separated integers.
In the file I noticed that there was a list of 104 integers, particularly this: