It's usually frowned upon to test someone's' website or server without permission and in almost all countries, the sheer act of doing this is already breaking the law.
However, if you do find an owner who is not an asshat about you trying to help, you have to be very care if you are going to ask for money. If you decide to release the information if they don't pay, or they don't want your help fixing it, then you are technically attempting to extort them, another illegal act.