For definition of hacking, please see this:

In the computer security context, a hacker is someone who seeks and exploits weaknesses in a computer system or computer network. Hackers may be motivated by a multitude of reasons, such as profit, protest, challenge. enjoyment,[1] or to evaluate those weaknesses to assist in removing them.

[1] Sterling, Bruce (1993). "Part 2(d)". The Hacker Crackdown. McLean, Virginia: p. 61.ISBN1-4043-0641-2.