An upcoming documentary on late Libyan dictator Moammar Khadafy reveals shocking new details of the ruler’s brutal regime, including keeping his enemies’ corpses in freezers and maintaining a secret sex den on the Tripoli University campus where he’d rape coeds.

In Christopher Olgiati’s “Mad Dog: Inside the Secret World of Muammar Gaddafi,” the director uncovers the leader’s depraved sexual predilections, barbaric revenge tactics and lifestyle he led making $1 billion per week, by interviewing those who were closest to him.

The Showtime doc airs this coming Friday, days before a Libyan trial of Khadafy’s sons, Al-Saadi and Seif Al Islam, and his spy chief, Abdullah Senussi.

Among those interviewed, Olgiati tracked down Khadafy henchman Frank Terpil, a rogue CIA agent in Cuba after being sentenced to 53 years in Manhattan State Supreme Court for illegal arms dealing. Terpil, according to the doc, ran what Khadafy called his “Murder Incorporated,” a “murder for hire” team with fellow former CIA operative Edwin Wilson.

Terpil recalls one hit in which the leader demanded that the head of his intended target be brought to him in a cooler. “I was in Geneva with Wilson. [A Khadafy relative] opened up a letter of credit for a million dollars for [the target’s] demise, on the caveat that his head be delivered back in a cooler to Libya so Khadafy could actually look at the results of the work,” he says.

Another source in the doc explains how Khadafy liked to visit his dead enemies. “He’d keep his victims in the [freezer] and visit their bodies frozen” for 25 years.

Olgiati and producer Michael Chrisman also gained access to the leader’s secret sex den where he’d rape women after his rambling speeches at the local university. The untouched room contains a bed, Jacuzzi and area where the women were checked for STDs, with surgical instruments, rubber masks and anaesthesia.

Olgiati told us of Khadafy, “He was utterly charming, utterly ruthless and stupendously rich. He was driven solely by his lust for power.”