Can you solve the minesweeper in one minute?
nc minesweeper.ctf.defenit.kr 3333
Straightforward task. Let me solve 16x16 size minesweeper less than a minute. To solve the task, flag all 40 mines and unlock full map.
Searched opensource since minesweeper is an old game. Used this repo and slightly modifed to solve the game(solver uses python2).
- Ask minesweeper solver the position with most safe space.
- Unlock all safe space by repeating 1, until only 40 locked spaces left.
- Flag all 40 leftover dangerous spaces.
Get flag:
Defenit{min35w33p3r_i5_ezpz}
Minesweeper solver: mines.py
Exploit code: solve.py