The court heard how police caught the attacker after looking at CCTV footage. Photo: Nora Tam