September 14, 2020 | 10:56am

Cops busted the perv who allegedly mugged and attempted to rape a woman at gunpoint in Brooklyn last week.

Seth Roman, 20, of the Bronx, was arrested around 5:15 p.m. Sunday in connection to the Thursday night attack in East New York, police said.

Roman allegedly came up from behind the 38-year-old victim as she walked along Crystal Street in East New York around 11:30 p.m. and threatened her with a gun.

He grabbed $12 from her before demanding that she get on the ground and pulled down her pants, cops said.

Roman then took off after the two had some sort of verbal exchange.

He was charged with attempted rape, robbery, criminal possession of a weapon, sexual abuse, forcible touching and menacing in connection to the incident, according to police.