One of two white men charged in the baseball bat attack of a black man pleaded guilty Wednesday to a hate crime.

Anthony Ench (search), 22, pleaded guilty to second-degree attempted robbery and second-degree attempted assault as a hate crime, prosecutors said.

Brown said Ench admitted kicking and punching Glenn Moore (search) and stealing his sneakers during the June 29 attack in Queens.

"The defendant has admitted that he took part in a heinous, cowardly and hate-motivated crime that left a young man seriously injured," District Attorney Richard Brown (search) said in a news release.

A co-defendant, Nicholas Minucci (search), 19, is accused of fracturing Moore's skull with an aluminum bat. He's awaiting trial on charges of assault as a hate crime.

Ench's lawyer, Vincent Siccardi, said his client "was very upset that this entire incident took place."

Siccardi said Ench has no intention of testifying against Minucci.