No. Mounting a brute force attack is illegal. In fact, it may be a felony under the Computer Fraud and Abuse Act in the United States. Other countries have similar laws.Testing your own server with brute force tools is legal. Make sure to have written permission if you’re testing someone else’s server.