Is hacks for Wii illegal?

It's not illegal, but it isn't endorsed by Nintendo. Hacking your Wii will cause your warranty to be voided, and Nintendo may refuse to repair your console if you send it to them.