In cybersecurity, the same actions can be against the law, depending on permission. Permission must be in writing and signed by an authorized person with detailed scope.
While hacking without permission is against the law, it is also wrong, since it can effect people’s lives, expose private matters, and undermine the company’s security.
To practice, try solving challenges and puzzles. Setting up virtual machines is also a great way to learn about the application. For more inclusion, build and host challenges for others.
Hacking back can result in many dangers due to middle systems.