fix -M ipv6

This commit is contained in:
vanhauser-thc 2021-11-01 14:13:51 +01:00
parent 13db28f9d2
commit 9b055287c0
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@ Release 9.3-dev
* fix for rdp to detect empty passwords
* for vnc/cisco/... protocols that only check for a password, skip host
after the password is found
* fixe to support IPv6 addresses in -M
* added "make uninstall"

View file

@ -3586,7 +3586,7 @@ int main(int argc, char *argv[]) {
}
} else
hydra_targets[i]->target = tmpptr;
if ((tmpptr2 = strchr(hydra_targets[i]->target, ':')) != NULL) {
if ((tmpptr2 = strchr(tmpptr, ':')) != NULL) {
*tmpptr2++ = 0;
tmpptr = tmpptr2;
hydra_targets[i]->port = atoi(tmpptr2);