mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
support uncommon mysql ports
This commit is contained in:
parent
650a8185c6
commit
eb064c4222
4 changed files with 2 additions and 1 deletions
|
@ -212,7 +212,7 @@ int32_t start_mysql(int32_t sock, char *ip, int32_t port, unsigned char options,
|
|||
}
|
||||
}
|
||||
/*mysql_options(&mysql,MYSQL_OPT_COMPRESS,0); */
|
||||
if (!mysql_real_connect(mysql, hydra_address2string(ip), login, pass, database, 0, NULL, 0)) {
|
||||
if (!mysql_real_connect(mysql, hydra_address2string(ip), login, pass, database, port, NULL, 0)) {
|
||||
int32_t my_errno = mysql_errno(mysql);
|
||||
|
||||
if (debug)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue