I made this just for fun, use for illegal purposes are not allowed. The mysql client read the password, then…