mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
show device on IPv6 LL addresses
This commit is contained in:
parent
044bab0c2c
commit
6445689545
2 changed files with 5 additions and 1 deletions
|
@ -1216,6 +1216,10 @@ char *hydra_address2string(char *address) {
|
|||
if (address[0] == 16) {
|
||||
memcpy(&target6.sin6_addr, &address[1], 16);
|
||||
inet_ntop(AF_INET6, &target6.sin6_addr, ipstring, sizeof(ipstring));
|
||||
if (hydra_targets[i]->ip[17] != 0) {
|
||||
strcat(ipstring, "%");
|
||||
strcat(ipstring, hydra_targets[i]->ip[17]);
|
||||
}
|
||||
return ipstring;
|
||||
} else
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue