Instead of using dorks to attack, developers should use them to :

Learn how to use to see if your own site is being targeted by dorks?

: Scanning websites without explicit permission is illegal in most jurisdictions (e.g., CFAA in the US).