Hacking can involve manipulating network connections and systems, but ethical hacking tests security through penetration testing for good purposes like protecting IT systems. There are three main types of hacking - white hat by security experts, black hat for personal gain, and grey hat combining white and black hat. Ethical hacking involves planning and executing penetration tests in a legal and non-destructive way to evaluate vulnerabilities and strengthen security.