Sorry about the assault. I hope that you reported it and you may want to consider some type of counseling now post assault as I'm sure that is mentally traumatic. You can NOT get an std through underwear, however. His rubbing his penis on you through his underwear will NOT transmit an STD. Includes std's and hiv. No risk.