Two New York women pleaded guilty on Friday to charges they studied how to make bombs for a terrorist attack on U.S. soil., federal prosecutors said.

Asia Siddiqui, 35, and Noelle Velentzas, 31, were "inspired by radical Islam" and taught each other chemistry and electrical skills necessary to build explosives and detonating devices, Assistant U.S. Attorney John Demers said in a statement. The women also researched how to make plastic explosives and car bombs to carry out attacks similar to the Boston Marathon and Oklahoma City bombings, as well as the 1993 attack on the World Trade Center, authorities said.

Siddiqui and Velentzas pleaded guilty in Brooklyn federal court to one count of teaching and distributing information pertaining to the making and use of an explosive, destructive device, and weapon of mass destruction, intending that it be used to commit a federal crime of violence. The women each face up to 20 years in prison, but the term could be shorter under sentencing guidelines and with credit for the more than four years they’ve already been behind bars awaiting trial. They are due to be sentenced in December.

Read more: Fox News