There are many ways.
1) Lots of money. Good provider. Good job. Good car. Nice neat home.
2) Engineering your looks to fit what they want. ( bodybuilding or stylish clothes and hair )
3) Persistence, If you won't take no for an answer then the answer eventually comes back yes! ( Mr Volume )
4) Authority or some position of power. Uniforms, such as police or military work well. Men with power and experience.
5)Joining a rock group.
6) A greasy good talker. Lots of smiling and general insincerity does it every time. He chases all women right in front of them. They love it. He is always late and treats them horribly, stands them up every chance he gets. But he knows how to tell them how desirable they are while he is looking at someone else. He is skilled at lovemaking and they become addicted to him. Then he treats them even worse. Total detachment.
7) Coercion(homework guy). Big attraction to them.
8) Good genetic traits. Pretty eyes, large hands, big brain, tall... Women are engineered to think in terms of their offspring so even though they may hate you, they just might marry you because it will produce good children.
9) Lots of potential which they can spot even when the person themselves can't. The key is the word ambition. Women unconsciously rate ambitious men as desirable.
10) Totally rotten to the bone. They are attracted to guys who are dangerous and hurt them and others.
11) Disinterested guys. They love a challenge too! The goddess Liz Taylor who could have anyone she wanted, pursued Montgomery Clift( he was gay so therefore impossible ). Tyrone Power for the same reason.
This comprises 99.684% of the male population. The rest are called sensitive guys or losers depending on who is speaking about them.