Hacking for NX is illegal and can get your account permanently banned, so it is best avoided entirely.
For a legitimate route, you can complete offers and surveys on the game's official homepage to earn free NX. Some promotional sign-ups also reward you with a decent amount of NX. It takes a little patience, but it keeps your account safe.