mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-13 01:57:30 -07:00
fix: skip user bug
username can potentially be identical to the beginning of login_ptr
This commit is contained in:
parent
fc70daa757
commit
221876598b
1 changed files with 1 additions and 1 deletions
2
hydra.c
2
hydra.c
|
@ -1957,7 +1957,7 @@ void hydra_skip_user(int32_t target_no, char *username) {
|
|||
hydra_targets[target_no]->skipcnt++;
|
||||
}
|
||||
if (hydra_options.loop_mode == 0 && !check_flag(hydra_options.mode, MODE_COLON_FILE)) {
|
||||
if (memcmp(username, hydra_targets[target_no]->login_ptr, strlen(username)) == 0) {
|
||||
if (strcmp(username, hydra_targets[target_no]->login_ptr) == 0) {
|
||||
if (debug)
|
||||
printf("[DEBUG] skipping username %s\n", username);
|
||||
// increase count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue