mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 21:33:51 -07:00
try redo fix
This commit is contained in:
parent
d887973533
commit
330e910a02
1 changed files with 3 additions and 3 deletions
6
hydra.c
6
hydra.c
|
@ -1597,7 +1597,7 @@ int32_t hydra_send_next_pair(int32_t target_no, int32_t head_no) {
|
|||
snp_is_redo = 0;
|
||||
snpdont = 0;
|
||||
loop_cnt++;
|
||||
if (hydra_heads[head_no]->redo && hydra_heads[head_no]->current_login_ptr != NULL && hydra_heads[head_no]->current_pass_ptr != NULL) {
|
||||
if (hydra_heads[head_no]->redo == 1 && hydra_heads[head_no]->current_login_ptr != NULL && hydra_heads[head_no]->current_pass_ptr != NULL) {
|
||||
hydra_heads[head_no]->redo = 0;
|
||||
snp_is_redo = 1;
|
||||
snpdone = 1;
|
||||
|
@ -1629,7 +1629,7 @@ int32_t hydra_send_next_pair(int32_t target_no, int32_t head_no) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (hydra_heads[head_no]->redo && hydra_heads[head_no]->current_login_ptr != NULL && hydra_heads[head_no]->current_pass_ptr != NULL) {
|
||||
if (hydra_heads[head_no]->redo == 1 && hydra_heads[head_no]->current_login_ptr != NULL && hydra_heads[head_no]->current_pass_ptr != NULL) {
|
||||
hydra_heads[head_no]->redo = 0;
|
||||
snp_is_redo = 1;
|
||||
snpdone = 1;
|
||||
|
@ -1638,7 +1638,7 @@ int32_t hydra_send_next_pair(int32_t target_no, int32_t head_no) {
|
|||
printf("[COMPLETED] target %s - login \"%s\" - pass \"%s\" - child %d - "
|
||||
"%" hPRIu64 " of %" hPRIu64 "\n",
|
||||
hydra_targets[target_no]->target, hydra_heads[head_no]->current_login_ptr, hydra_heads[head_no]->current_pass_ptr, head_no, hydra_targets[target_no]->sent, hydra_brains.todo + hydra_targets[target_no]->redo);
|
||||
hydra_heads[head_no]->redo = 0;
|
||||
//hydra_heads[head_no]->redo = 0;
|
||||
if (hydra_targets[target_no]->redo_state > 0) {
|
||||
if (hydra_targets[target_no]->redo_state <= hydra_targets[target_no]->redo) {
|
||||
hydra_heads[head_no]->current_pass_ptr = hydra_targets[target_no]->redo_pass[hydra_targets[target_no]->redo_state - 1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue