Cyber Security

Is using “TheHarvester” tool to gain list of email ids illegal?

I would say it is probably legal in most jurisdictions. But I can not give legal advice!