mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 04:26:10 -07:00
feat: added the ability to brute force a custom port
This commit is contained in:
parent
6aaeee97a3
commit
4fad67d307
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ int32_t start_postgres(int32_t s, char *ip, int32_t port, unsigned char options,
|
|||
* Building the connection string
|
||||
*/
|
||||
|
||||
snprintf(connection_string, sizeof(connection_string), "host = '%s' dbname = '%s' user = '%s' password = '%s' ", hydra_address2string(ip), database, login, pass);
|
||||
snprintf(connection_string, sizeof(connection_string), "host = '%s' port = '%d' dbname = '%s' user = '%s' password = '%s' ", hydra_address2string(ip), port, database, login, pass);
|
||||
|
||||
if (verbose)
|
||||
hydra_report(stderr, "connection string: %s\n", connection_string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue