I just thought I'd add for clarity that 12V is the yellow cable and 5V is the red one in the standard format, and of course both blacks are ground. If you have entirely black cables then 12V should be indicated by a small 1 on the plastic housing of the molex connector, indicating that it is pin 1; pins 2 and 3 are ground, then pin 4 is 5V.