Attacker sentenced to 25 years