In what country? I suspect that given the intentions it would be a breach of the U.K. computer misuse act for example. Holding the perpetrator to the law is another matter of course.
Exactly. If I just nilly willy connect to your server, try a password and it works and I immediately disconnect, will that get me in trouble in the UK? That would be worrying.
2. But if you make a stab at shoplifting and you are successful and give back the item, did you break the law?
I am not a lawyer I am just asking.
Well, yeah?
But the law is never black and white. Programmers think the law is some code to run. It’s not.