A hacker has confessed in court to hijacking other people’s computers to make murder threats in a bizarre case that saw the source code for a virus stashed in the collar of a cat.