mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-08 07:37:24 -07:00
Merge pull request #704 from ToraNova/master
fix mongodb module not using specified port
This commit is contained in:
commit
f2f931965e
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ int32_t start_mongodb(int32_t s, char *ip, int32_t port, unsigned char options,
|
|||
mongoc_log_set_handler(NULL, NULL);
|
||||
bson_init(&q);
|
||||
|
||||
snprintf(uri, sizeof(uri), "mongodb://%s:%s@%s/?authSource=%s", login, pass, hydra_address2string(ip), miscptr);
|
||||
snprintf(uri, sizeof(uri), "mongodb://%s:%s@%s:%d/?authSource=%s", login, pass, hydra_address2string(ip), port, miscptr);
|
||||
client = mongoc_client_new(uri);
|
||||
if (!client)
|
||||
return 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue