A violent prisoner who once threw a kettle of boiling water at a guard has now admitted stabbing a fellow inmate in the head 10 times with a pen.