It is what's called a MOLEX connector, after the Molex company that invented it and standardized it throughout
the electronics industry in the 60's through 80's; although other manufacturers have made components to the same standard.
Still very common, but many fewer products these days require the heavy amperage these connectors can handle, nor permit
the large space they require.
One buys separate crimp-on male pins and female sockets; and the mating housings based on pin-count and configuration.
Various features are available like lock-into-sheet-metal housing or lock male-to-female housings together for "flying" connections; the ones you show have such "ears." Not required for what you need, friction fit will do fine.
Check virtually any electronics parts house like Mouser, or even Radio Shack [oooops...
]
(And technically you would need the genuine Molex-style crimping tool available for MuchBux; but not really.)