mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 05:43:52 -07:00
Merge branch 'master' of https://github.com/vanhauser-thc/thc-hydra
This commit is contained in:
commit
b589d658bd
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ int32_t start_rdp(char *ip, int32_t port, unsigned char options, char *miscptr,
|
|||
if (strlen(pass = hydra_get_next_password()) == 0)
|
||||
pass = empty;
|
||||
|
||||
strcpy(server, hydra_address2string(ip));
|
||||
strncpy(server, hydra_address2string(ip), sizeof(server) - 1);
|
||||
|
||||
if ((miscptr != NULL) && (strlen(miscptr) > 0)) {
|
||||
strncpy(domain, miscptr, sizeof(domain) - 1);
|
||||
|
|
|
@ -1212,7 +1212,7 @@ int32_t start_smb(int32_t s, char *ip, int32_t port, unsigned char options, char
|
|||
if (strlen(pass = hydra_get_next_password()) == 0)
|
||||
pass = empty;
|
||||
|
||||
strcpy(ipaddr_str, hydra_address2string(ip));
|
||||
strncpy(ipaddr_str, hydra_address2string(ip), sizeof(ipaddr_str) - 1);
|
||||
|
||||
SMBSessionRet = SMBSessionSetup(s, login, pass, miscptr);
|
||||
if (SMBSessionRet == -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue