Former FBI Deputy Director Andrew McCabe raised more than $300,000 in less than 9 hours after launching a fundraiser for an anticipated legal battle with President Trump.

A GoFundMe page for McCabe’s legal defense fund was launched on Thursday and proposed to help shield the ousted spy guy against any potential lawsuits in addition to congressional inquiries and an Inspector General investigation.

“Andrew McCabe’s FBI career was long, distinguished, and unblemished,” a statement on the page read.

“His reward … has been a termination that was completely unjustified, amidst repeated ad hominem attacks by the President of the United States.”

The fund had received $327,790 as of late Thursday.

McCabe, who was fired 26 hours before his planned retirement, claims he was canned in an attempt to discredit him as a witness in the special counsel’s probe into Russian election interference.

“This attack on my credibility is one part of a larger effort not just to slander me personally, but to taint the FBI, law enforcement, and intelligence professionals more generally,” McCabe said on the night he was axed.

“It is part of this Administration’s ongoing war on the FBI and the efforts of the Special Counsel investigation, which continue to this day. Their persistence in this campaign only highlights the importance of the Special Counsel’s work.”