"It's like the kids today who hit send before they really understand what they texted", Brafman said.
He said he hoped to make amends and learn from his mistakes, and apologised to his investors. I am terribly sorry I lost your trust. "The trial and the six months in a maximum security prison has been a frightening wake-up call", Shkreli wrote, according to CNBC.
Prosecutors sought a gag order on him after that outburst, but the judge denied their application.
Prosecutors said Shkreli, 34, was an arrogant manipulator who conned rich investors.
Shkreli's lawyers disagreed. In their own sentencing memo, they asked for a sentence of 12-18 months in jail, "followed by court-mandated therapy and 2000 hours of community service".
Shkreli was widely criticized for raising the price of HIV drug Daraprim by 5,000 percent.
In handing down the seven-year term, Judge Kiyo Matsumoto remarked that the sentence was "not about Mr Shkreli's self-cultivated public persona ... nor his controversial statements about politics or culture", but merely reflected the "serious" crime he committed.
Brafman, noting that he was old enough to be Shkreli's father, said his client had not always been easy to work with. He said there had been times "I want to hug and hold him, times I want to punch him in the face for some of the things he's said".
Martin Shkreli and his attorney Benjamin Brafman.
Assistant U.S. Attorney Jacquelyn Kasulis said the 15 year sentence was justified in part because Shkreli's crimes were not an "isolated lapse in judgment", but a pattern of conduct including separate frauds for his two hedge funds and for his drug company Retrophin Inc. Matsuomoto explained that he didn't take any of his actions outside of security fraud into account during the sentencing, but let's be real if he did he'd be sentenced for even longer. He sneered through the proceeding and pleaded the Fifth Amendment. After the hearing, he tweeted the politicians were "imbeciles".
"How is it that someone who made millions of dollars for his investors, albeit causing these millionaires "frustration" along the way, would become the target of a federal prosecution and end up before a sentencing court?"
In September, less than a month after his conviction, Shkreli offered $USS5000 to any of his online followers who plucked a hair from Clinton's head during her book tour.
Judge Matsumoto read letters from Shkreli's family and supporters who rallied on his behalf.
That didn't tame Shkreli completely.
The defence had asked the judge to consider the letters in its case for leniency. He also ignored the advice of his lawyer by commenting on the trial via social media and YouTube.