We built a system with the most humanitarian application imaginable, helping people in need, and it was good. Turns out, it's hard to make money at that and the business people recast things into a new product that could suppress dissent in authoritarian countries, which they sold there. I'm positive it's been used to hurt people.
Ethically, all the people that make generic infra like roads or computers or sdr software are not responsible if someone else does evil with their product.
That said would be nice to someone like google just added a layer on google maps of all objects you can track. There are companies that do all sort of tracking, just not as cheaply as this.
Restricting code like this will make zero difference to governments or any motivated, well funded, capable group. It just hampers the rest of us.
Authoritarian governments just buy normal radars, and illuminate to their hearts content.
In a domestic authoritarian context, an herbal extract salesman could detect when illumination is shone on the house in preparation for a heist.