rdp empty pw fix

This commit is contained in:
vanhauser-thc 2021-10-27 17:19:13 +02:00
parent 3e364483d2
commit 13db28f9d2
2 changed files with 5 additions and 1 deletions

View file

@ -5,6 +5,7 @@ Release 9.3-dev
* support Xcode compilation * support Xcode compilation
* new module: cobaltstrike by ultimaiiii, thank you! * new module: cobaltstrike by ultimaiiii, thank you!
* fix for ssh to support -M or ip/range * fix for ssh to support -M or ip/range
* fix for rdp to detect empty passwords
* for vnc/cisco/... protocols that only check for a password, skip host * for vnc/cisco/... protocols that only check for a password, skip host
after the password is found after the password is found
* added "make uninstall" * added "make uninstall"

View file

@ -22,6 +22,9 @@ BOOL rdp_connect(char *server, int32_t port, char *domain, char *login, char *pa
instance->settings->Username = login; instance->settings->Username = login;
instance->settings->Password = password; instance->settings->Password = password;
instance->settings->IgnoreCertificate = TRUE; instance->settings->IgnoreCertificate = TRUE;
if (password[0] == 0)
instance->settings->AuthenticationOnly = FALSE;
else
instance->settings->AuthenticationOnly = TRUE; instance->settings->AuthenticationOnly = TRUE;
instance->settings->ServerHostname = server; instance->settings->ServerHostname = server;
instance->settings->ServerPort = port; instance->settings->ServerPort = port;