From b54a3b24959f9b497e9f1f2715c91edad41e5b0f Mon Sep 17 00:00:00 2001 From: van Hauser Date: Wed, 31 Jan 2018 14:07:54 +0100 Subject: [PATCH] -w support for ssh module --- hydra-ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hydra-ssh.c b/hydra-ssh.c index 3bb4e49..3808a35 100644 --- a/hydra-ssh.c +++ b/hydra-ssh.c @@ -181,6 +181,7 @@ int32_t service_ssh_init(char *ip, int32_t sp, unsigned char options, char *misc ssh_options_set(session, SSH_OPTIONS_USER, "hydra"); else ssh_options_set(session, SSH_OPTIONS_USER, miscptr); + ssh_options_set(session, SSH_OPTIONS_TIMEOUT, &hydra_options.waittime); ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "none"); ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "none"); if (ssh_connect(session) != 0) {