You can not get any std from a dirty sock. If you haven't had intercourse or oral sex then you do not have any std. They're called sexually transmitted for a reason.
So what can I do to cure what I have. I also want to note that I also didn’t have any open sores or anything.
Not herpes.
Probably just a fungus from the sock. Antifungal cream does nothing for herpes.
If it shows up just get it swabbed and tested. You can get a blood test at 12 weeks post exposure for reassurance but it's not herpes.