This is a 2-pin JST RCY connector typically used for low-voltage applications running 3A or less.
They are commonly found in RC vehicles. These come in a bag of 1 male plug, 1 female plug, plus pins to connect them both. The pins crimp to your cable and are inserted into the housing.
- 1 male socket
- 1 female socket
- 4 pins