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); diff --git a/hydra-ssh.c b/hydra-ssh.c index 7ee9405..1e956ac 100644 --- a/hydra-ssh.c +++ b/hydra-ssh.c @@ -208,7 +208,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; diff --git a/hydra.c b/hydra.c index 482c37e..15d4eab 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!");