Well, Ethical hackers are also known as White Hat Hackers. Ethical hacking could be done by gaining prior permission from the authorized personnel of the organization, in which pentesting should be conducted.
Ethical hacking is a legal work that involves penetrating into a network system with permission to assess the strength and weaknesses of the network system.
Want to be a White Hat Hacker? Check out CEH Course by Intellipaat!