For the purpose of mass spamming or spear phishing, hackers use a module available in Metasploit that pulls email accounts of a particular organization from ‘Google’, ‘Bing’ and ‘Yahoo’.
Hackers find it useful to perform online password attacks later on–it is important to know the IDs or usernames to before commencing the cracking process–during targeted attacks.