add support for freerdp3"

Added support for freerdp module 3, this is the newest module from freerdp
This commit is contained in:
Henry Robalino 2020-06-05 17:28:49 -04:00 committed by GitHub
commit a88198051b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 55 deletions

10
hydra.c
View file

@ -117,7 +117,7 @@ extern int32_t service_oracle_sid_init(char *ip, int32_t sp, unsigned char optio
extern void service_sip(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE *fp, int32_t port, char *hostname);
extern int32_t service_sip_init(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE *fp, int32_t port, char *hostname);
#endif
#ifdef LIBFREERDP2
#ifdef LIBFREERDP3
extern void service_rdp(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE *fp, int32_t port, char *hostname);
extern int32_t service_rdp_init(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE *fp, int32_t port, char *hostname);
#endif
@ -426,7 +426,7 @@ static const struct {
#endif
SERVICE(redis),
SERVICE(rexec),
#ifdef LIBFREERDP2
#ifdef LIBFREERDP3
SERVICE3("rdp", rdp),
#endif
SERVICE(rlogin),
@ -2237,7 +2237,7 @@ int main(int argc, char *argv[]) {
strcat(unsupported, "SSL-services (ftps, sip, rdp, oracle-services, ...) ");
#endif
#ifndef LIBFREERDP2
#ifndef LIBFREERDP3
// for rdp
SERVICES = hydra_string_replace(SERVICES, " rdp", "");
#endif
@ -2905,8 +2905,8 @@ int main(int argc, char *argv[]) {
}
if (strcmp(hydra_options.service, "rdp") == 0) {
#ifndef LIBFREERDP2
bail("Compiled without FREERDP2 support, module not available!");
#ifndef LIBFREERDP3
bail("Compiled without FREERDP3 support, module not available!");
#endif
}
if (strcmp(hydra_options.service, "pcnfs") == 0) {