Aaron Hand pleaded guilty today to ordering a hit on man who helped put him in prison. Photo: Steven Hirsch

The convicted mastermind of a $100 million mortgage scam pleaded guilty today to plotting to take out a contract on the life of the “rat” who helped put him behind bars.

Aaron Hand, who is already serving 8 1/3 to 25 years in prison for mortgage fraud, will have an 8- to 16-year sentence slapped on top of his existing prison term when he is sentenced Feb. 6 before Manhattan Supreme Court Justice Laura Ward.

He could have faced up to 25 years in prison if he’d gone to trial and been convicted of attempted murder and conspiracy to commit murder.

“This was a more appropriate way to resolve the situation,” said his defense lawyer Lee Ginsberg.

The bald 40-year-old jailbird was charged in October after being caught scheming over wiretaps about a planned $2,000 hit on the “total f—ing p—y” who put him in prison.

“I wish I was there to see his f—ing face,” prosecutors said Hand ranted about his target to an undercover wearing a wire. “Watch him f—ing suffer.”

Hand was convicted in 2010 of masterminding a four-year scam through his Long Island company, AFG Financial Group, that scammed banks out of $100 million. More than 20 other people were convicted in the racket.

During profane rants taped at Coxsackie Correctional Facility, Hand railed against the witness and even mused about having the man’s wife and kids killed at their Brooklyn home.

Court papers say he instructed the “hitman” to “pop” any targets “right through the window,” then dump the bodies and leave no trace of a crime.

“I think if you leave anybody, you might …have a problem,” Hand told the undercover.

The witness targeted by Hand was one of several who cooperated against Hand at his earlier trial.

“The case itself was filled with rats,” Hand was taped telling the undercover.

“Big time. One, one got me pretty f—ing good,” he said of his would-be victim.

Prosecutors had previously revealed that Hand hit up his friends and parents for a $150 downpayment to carry out the deadly job, telling them he needed cash to bribe a corrections officer.