Joseph Bernard Campbell has agreed to plead guilty to federal charges of cyberstalking and unauthorized access to a computer after he stole naked pictures of women and posted the images on their Facebook pages.

The 24-year-old from Largo, Fla., knew many of the women. His plea agreement states it was his intention to “to harass the victims and cause them emotional distress.”

Campbell also posted the photos on porn sites called "Pinellas County Sluts” and “Dumpster Sluts,” and in a forum called “Revenge,” The Washington Post reports. Those sites are no longer active.

Campbell admitted he hacked into as many as 500 email accounts and told police he often sent emails to women inviting them to view a greeting card, which tricked them into giving him their passwords, according to Tampa Bay Online.

Part of the plea agreement calls for Campbell to hand over all his computers, the news service said. The charges of cyberstalking and unauthorized access to a computer each carry a maximum penalty of five years in federal prison, along with a $250,000 fine, but it's likely he'll receive a lesser sentence.