I had unprotected sex

Idk what to do I got super drunk and blacked out. I was w a guy friend and he took advantage of me while I was passed out he did anal on me and came inside me and im not sure what else be I was passed out. Long story short. He woke me up and told me everything and switched a lot of stories around. I knew what I said and didn’t say I know I was ok at first w him and I having sex but I completely blacked out.

Idk if he has any Herps. I’m scared. Any way I can prevent an infection before it starts