Modifying and distributing copyrighted software is generally illegal and violates intellectual property rights .