mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 05:43:52 -07:00
ssh initial password check now uses the supplied user
This commit is contained in:
parent
60c5aff0ea
commit
7f1a9e3496
4 changed files with 15 additions and 4 deletions
4
hydra.c
4
hydra.c
|
@ -1238,8 +1238,9 @@ void hydra_service_init(int target_no) {
|
|||
if (strcmp(hydra_options.service, "socks5") == 0)
|
||||
x = service_socks5_init(hydra_targets[target_no]->ip, -1, options, hydra_options.miscptr, hydra_brains.ofp, hydra_targets[target_no]->port, hydra_targets[target_no]->target);
|
||||
#ifdef LIBSSH
|
||||
// dirty workaround here:
|
||||
if (strcmp(hydra_options.service, "ssh") == 0)
|
||||
x = service_ssh_init(hydra_targets[target_no]->ip, -1, options, hydra_options.miscptr, hydra_brains.ofp, hydra_targets[target_no]->port, hydra_targets[target_no]->target);
|
||||
x = service_ssh_init(hydra_targets[target_no]->ip, -1, options, login_ptr, hydra_brains.ofp, hydra_targets[target_no]->port, hydra_targets[target_no]->target);
|
||||
if (strcmp(hydra_options.service, "sshkey") == 0)
|
||||
x = service_sshkey_init(hydra_targets[target_no]->ip, -1, options, hydra_options.miscptr, hydra_brains.ofp, hydra_targets[target_no]->port, hydra_targets[target_no]->target);
|
||||
#endif
|
||||
|
@ -3274,6 +3275,7 @@ int main(int argc, char *argv[]) {
|
|||
//}
|
||||
//if (conwait == 0)
|
||||
// hydra_options.conwait = conwait = 1;
|
||||
printf("[WARNING] the rdp module is currently reported to be unreliable, most likely against new Windows version. Please test, report - and if possible, fix.\n");
|
||||
i = 1;
|
||||
}
|
||||
// ADD NEW SERVICES HERE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue