Those are the right words.
Misogyny = hatred of women (from either women or men)
Misandry = hatred of men (ditto)
Misanthropy = hatred of humankind
Misogyny comes from the same root as gynaecology, and misandry
from the same root as androids (artificial men).