What is this?

It's just at where I wear my pants/underwear. It hurts to the touch and feels hard.