in the case of D2 it's against their TOS and they'll kick you off their servers and delete your account if you cheat.
And quite rightly so. No-one likes a cheating ******. But it's NOT illegal unless specified in the EULA that you can't change a component in any way.
