A man accused of hiding inside the girls' bathroom at a Syracuse elementary school and harassing three female students admitted his guilt Friday morning.