This is a cable with a connector that’s designed to mate with an encoder.
One end has the connector, and the other end is bare cables. The connector attaches to an encoder. The bare wires connect to a controller.
To buy this on ebay: Connector for Encoders,6 Pin, 25 Ft, RED LION CCARPG25