Well, university assignments are at least doable. For an experienced developer easily so, which makes them quite profitable. The profit goes down the drain if you need to explain to the student how your code works (if he knew, he wouldn't want you to code it for him).
I'm not quite sure how to work that - maybe sue them as some sort of accessory to fraud, though that would probably first require the university charging cheating students with fraud.