A SEX attacker who raped a woman was caught by police outside her flat with his fly down.

Scott Murray, 28, attacked the 41-year-old's male friend in her house before carrying out the attack on her.

He threatened to “kill her boy” during the incident while she said “enough is enough”.

When police arrived they found Murray at the entrance to the woman's close with his jeans unbuttoned at the fly and appeared to be bloodstained.

Murray pled guilty at the High Court in Glasgow to raping the woman on January 21 this year and assaulting her 60-year-old friend at her flat in Dumbarton to his severe injury and permanent disfigurement.

He also admitted an indecent assault, to her injury, on a 56-year-old woman on December 1, 2016 at a flat on Glasgow Road, Dumbarton.

The court heard Murray knew his 41-year-old victim, who has since died, and banged on her door on the day of the rape.

She phoned her friend in a “panicked state” as Murray came in to her house but she didn't speak to Murray until her friend arrived.

The 60-year-old and Murray exchanged words and Murray hit him over the head with a small stool.

He grabbed a television cable and held it over the pensioner's neck and pinned him down.

Murray threatened that he was “going to choke the life out of him, kill him, rape the woman, and kill her'.”

The thug then turned to the woman and raped her, and threatened to “kill her boy”.

Murray left and the woman's friend asked a neighbour to contact police.

When they arrived they heard someone in the close area and found Murray standing at the entrance with his jeans unbuttoned at the fly area and bloodstained.

Defence counsel Ronnie Rennuci said sexual gratification was "not the driving force" and both sexual crimes were committed "in full view of witnesses".

Judge Lord Burns put him on the sex offenders' register and deferred sentence until next month.