It doesn't matter whether it was your penis or anus. Std's do not just sit around on people's hands waiting for them to touch body parts to get in their bodies. It takes a significant amount of one person's fluid being transmitted through a sexual act to another person. You cannot get an std from a simple hand job- hand to penis, hand to anus, hand to vagina. It doesn't happen.
sorry didn't know it was censored, what I meant was anus
Std's do not live on the hands. So, any form of touching with the hands only is not going to transmit an std to you. To transmit an std, fluid from an infected person would have to enter your urethra.