A DANGEROUS criminal who tried to kill a former workmate in a brutal knife attack in Catrine has been jailed for nine years.

William Cunningham - a convicted thug and high-risk sex offender - was masked and in full biker gear when he pounced on Gordon McLeod outside his home on February 4, 2023.

The blood-soaked 29- year-old victim only managed to escape by fleeing to a nearby shop.

Cunningham was back at the High Court in Glasgow to learn his fate. He had pleaded guilty to an attempted murder charge in October.

The 57 year-old already had a raft of convictions, including for the same crime as well as child abuse.

He was hit with a Sexual Offences Prevention Order (SOPO) in 2010 due to the danger he posed to youngsters.

Cunningham made headlines a year later when he went missing after breaching the SOPO before being discovered on the Holy Isle, off the Arran coast, which is owned by Tibetan Monks.

Lord Scott said he had decided against looking at the possibility of imposing an Order for Lifelong Restriction on Cunningham.

He instead sentenced him to nine years adding the thug will be supervised for a further six years on his release.

Lord Scott: "The nature of the offence, your convictions and the (pre-sentencing) report make it clear you pose a serious risk of harm to the public."

Cunningham - latterly employed at a bed shop in Ayrshire - had worked with Mr McLeod for a spell in 2022.

Mr McLeod reported the thug had "never shown any aggression" towards him.

The victim had also been in a relationship with a young woman, who Cunningham had described as his 'goddaughter'.

The court heard claims there were later issues between the couple. She had also spoke about seeing another man.

The woman later arranged to collect belongings and Cunningham joined her on the trip to Mr McLeod's flat.

They were in a taxi with one of her friends. The atmosphere was described as "weird".

The woman was then heard whispering to Cunningham: "This better not come back to us."

Cunningham rummaged through his bag bringing out leather gloves and a black Covid mask.

A knife was then spotted hanging out his pocket - but he claimed it was "nothing".

Cunningham - wearing a black bandana and leather jacket with biker pictures - got out the car.

The woman told her friend: "I think Billy is going to do something to Gordon. This will be better for all of us if he is gone."

Mr McLeod later left his flat when he suddenly felt a "sharp blow" to the back.

Prosecutor Lindsey Dalziel said: "Gordon McLeod turned around and saw a male dressed in black trying to cover his face with his arm.

"He saw a glint of a blade - Cunningham stabbed him in the stomach.

"Gordon McLeod kicked out, there was a struggle and Cunningham slashed him on the right side of the face."

The victim escaped to the shop and first aid was initially given by shocked witnesses.

As sirens were heard in the street, the face of Cunningham's 'goddaughter' was said to have 'dropped'.

She stated: "I think Billy has attacked Gordon."

The court heard the victim needed hospital treatment for wounds to his stomach and underarm as well as injuries to his face, wrist and fingers.

Miss Dalziel said he may have died, but for immediate medical help.