There were similar techniques for pirated games.
Konami for example saw that pirates usually erased their logo from the boot sequence so what they did is insert some code that detected when this happened and modified the game accordingly.
One case was the TMNT game for the NES which when pirated set itself in a ultra-hard mode that was impossible to beat since the final boss keep replenishing its energy.