mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
Merge pull request #1004 from xh4vm/postgres-custom-port
feat: added the ability to brute force a custom port
This commit is contained in:
commit
7bf582699d
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
|
* 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)
|
if (verbose)
|
||||||
hydra_report(stderr, "connection string: %s\n", connection_string);
|
hydra_report(stderr, "connection string: %s\n", connection_string);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue