mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-22 14:23:54 -07:00
Merge branch 'master' of github.com:vanhauser-thc/thc-hydra
This commit is contained in:
commit
dcda041f93
3 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,7 @@ void dummy_sip() {
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include "sasl.h"
|
#include "sasl.h"
|
||||||
|
|
||||||
extern int32_t hydra_data_ready_timed(int32_t socket, long sec, long usec);
|
extern int32_t hydra_data_ready_timed(int32_t socket, long sec, long usec);
|
||||||
|
|
|
@ -208,7 +208,7 @@ int32_t service_ssh_init(char *ip, int32_t sp, unsigned char options, char *misc
|
||||||
return 0;
|
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;
|
return 1;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
|
3
hydra.c
3
hydra.c
|
@ -3290,6 +3290,9 @@ int main(int argc, char *argv[]) {
|
||||||
tmpptr++;
|
tmpptr++;
|
||||||
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) {
|
} else if (index(hydra_options.server, '/') != NULL) {
|
||||||
if (cmdtarget == 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!");
|
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!");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue