A Brooklyn man accused of shooting and wounding two cops in the name of radical Islam was indicted Thursday for first degree attempted murder of a police officer, attempted aggravated murder, and a slew of other charges.

Frederick “Jamaal” Funes, 34, faces 50 years to life in prison after ​opening fire on officers Andrew Yurkiw and William Reddin during an early morning pursuit on Feb. 20, after they responded to reports of shots fired around Bed-Stuy and Bushwick.

When the officers arrived around 3:20 a.m., Funes was driving recklessly — at one point speeding the wrong way down a one way seat.

As he sped away, Funes pointed a silver gun at various people he passed — including two uniformed officers and an MTA worker.

He eventually t-boned into a marked police car, and then opened fire on surrounding officers, who shot back.

Yurkiw was shot in the chest, but was saved by his bulletproof vest. Reddin was hit in the lower back, and required surgery.

NYPD Capt. Scott Forster was later stripped of his badge and gun after he went home instead of reporting to the hospital, as ordered, to support the officers and their families.

Forster is being investigated for gross negligence, police sources have said.

Funes, who was hit by multiple rounds during the shootout, has spent the last month hospitalized and recovering from his injuries. He became radicalized during a stint in an out-of-state prison, according to sources.

The radical was held without bail on the 37​-​count indictment, and will return to court June 2.