This commit is contained in:
vanhauser-thc 2021-10-06 15:21:26 +02:00
parent 5cb14100f8
commit b3bd068334
3 changed files with 9 additions and 9 deletions

@ -5,7 +5,7 @@
#endif
extern char *HYDRA_EXIT;
char *buf = NULL;
static char *buf = NULL;
int32_t start_cisco(int32_t s, char *ip, int32_t port, unsigned char options, char *miscptr, FILE *fp) {
char *empty = "";

@ -19,7 +19,7 @@ int32_t vnc_client_version = RFB33;
int32_t failed_auth = 0;
extern char *HYDRA_EXIT;
char *buf;
static char *buf;
/*
* Encrypt CHALLENGESIZE bytes in memory using a password.

14
hydra.c

@ -2220,6 +2220,10 @@ int main(int argc, char *argv[]) {
SERVICES = hydra_string_replace(SERVICES, "radmin2 ", "");
strcat(unsupported, "radmin2 ");
#endif
#ifndef LIBFREERDP
SERVICES = hydra_string_replace(SERVICES, "rdp ", "");
strcat(unsupported, "rdp ");
#endif
#ifndef LIBSAPR3
SERVICES = hydra_string_replace(SERVICES, "sapr3 ", "");
strcat(unsupported, "sapr3 ");
@ -2267,11 +2271,6 @@ int main(int argc, char *argv[]) {
strcat(unsupported, "SSL-services (ftps, sip, rdp, oracle-services, ...) ");
#endif
#ifndef LIBFREERDP
// for rdp
SERVICES = hydra_string_replace(SERVICES, " rdp", "");
#endif
#ifndef HAVE_MATH_H
if (strlen(unsupported) > 0)
strcat(unsupported, "and ");
@ -3940,9 +3939,10 @@ int main(int argc, char *argv[]) {
}
freeaddrinfo(res);
}
// restore device information if present
// restore device information if present (overwrite null bytes)
if (device != NULL) {
*(device - 1) = '%';
char *tmpptr = device - 1;
*tmpptr = '%'; // you can ignore the compiler warning
fprintf(stderr, "[WARNING] not all modules support BINDTODEVICE for IPv6 "
"link local addresses, e.g. SSH does not\n");
}