this clever hack is pretty surely illegal, it falls somewhere under unauthorized use of a computer system
intent is the hardest to prove in the court of law, and you solved that for them by making it clear you intend to do damage
intent is the hardest to prove in the court of law, and you solved that for them by making it clear you intend to do damage
Under the Computer Fraud and Abuse Act it might fall under (a)(5)(A), if it happens to a protected computer, but it's very far from clear to me.
I'd support less risky versions, anyhow.