Both look like males to me.
The thing to check is the distance between anus and genitalia, female cats are really close (almost like an inverted exclamation point, dot on top and little slit underneath) whereas male cats have more of a space between anus and penis (that space is where the testicles drop to as the kitten grows). Hope this helps!