This is a DB9 male connector. Just glue inside it two strips of 0.1" header, one with 5 pins and one with 4 pins. (I used ABS juice for the glue.) The pins will be slightly off from the official DB9 spacing of 0.108", but it should be close enough.
In theory, you can change the number of pins and even customize this to generate a DB15, but the disparity in pin spacing will then become more problematic.