To be fair, techincal solutions are often the first call for this kind of thing.
Lawyers are rarely needed because anyone worth sueing wont be interested in using pirate software.
But they might need a push in the riggt direction.
This is why you often see "enterprise" versions of open source software. They have a few extra features that are super useful ...