It doesn't sound like herpes. Have you seen your doctor?
Genital rubbing doesn't often result in transmission unless it's the kind of rubbing associated with intercourse.
There are many things this could be other than an STI. You should really show a doctor.
The pain was on my leg next to my testicles