As someone who has scanned e.g. all of 24.0/8 from a work machine, you do get angry emails to abuse@<your-reverse-dns-name>. I don't think there are legal issues here -- these are all public services on the internet. But installing software like the author did is legally problematic.