From 9ea71a55eba66c19a8bd4cafaba1f5bdabd46233 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Wed, 3 Oct 2018 17:39:12 +0200 Subject: [PATCH 1/3] debugging ssh --- hydra-ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-ssh.c b/hydra-ssh.c index 3808a35..4e9dc7a 100644 --- a/hydra-ssh.c +++ b/hydra-ssh.c @@ -206,7 +206,7 @@ int32_t service_ssh_init(char *ip, int32_t sp, unsigned char options, char *misc return 0; } - fprintf(stderr, "[ERROR] target ssh://%s:%d/ does not support password authentication.\n", hydra_address2string_beautiful(ip), port); + fprintf(stderr, "[ERROR] target ssh://%s:%d/ does not support password authentication (method reply %d).\n", hydra_address2string_beautiful(ip), port, method); return 1; #else return 0; From 2043a941ebe86cb42d1c599e531d6ab1c818ca1e Mon Sep 17 00:00:00 2001 From: van Hauser Date: Sat, 6 Oct 2018 18:33:13 +0200 Subject: [PATCH 2/3] force stdint.h --- hydra-sip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hydra-sip.c b/hydra-sip.c index 7d681e8..22de26c 100644 --- a/hydra-sip.c +++ b/hydra-sip.c @@ -15,6 +15,7 @@ void dummy_sip() { } #else +#include #include "sasl.h" extern int32_t hydra_data_ready_timed(int32_t socket, long sec, long usec); From ff4deb768e48e977c582dccebfe3a0b248c5f871 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 11 Oct 2018 19:30:55 +0200 Subject: [PATCH 3/3] fix no target crash --- hydra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hydra.c b/hydra.c index 53e1ff7..6a0413d 100644 --- a/hydra.c +++ b/hydra.c @@ -3290,6 +3290,9 @@ int main(int argc, char *argv[]) { tmpptr++; tmpptr++; } + } else if (hydra_options.server == NULL) { + fprintf(stderr, "Error: no target server given, nor -M option used\n"); + exit(-1); } else if (index(hydra_options.server, '/') != NULL) { if (cmdtarget == NULL) bail("You seem to mix up \"service://target:port/options\" syntax with \"target service options\" syntax. Read the README on how to use hydra correctly!");