From af9f23da9f3ce89353cf06878bf8ab49b405e331 Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 17 Aug 2021 12:07:24 +1000 Subject: Impl full IPv6 support ... * Use different strategy for discovering IPv6 hosts on the network * Multicast IPv6 packet with bogus destination options to get ICMPv6 responses(type 4, code 2) * Send SYN packets to the hosts responds to the packet to confirm that they have target ports open * Add full scope_id support * Fix potential infinite loop when receiving raw packets --- src/proone-htbthost.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/proone-htbthost.c') diff --git a/src/proone-htbthost.c b/src/proone-htbthost.c index 106d899..c4f543e 100644 --- a/src/proone-htbthost.c +++ b/src/proone-htbthost.c @@ -244,6 +244,8 @@ static bool parse_param (const char *arg) { prne_net_endpoint_t ep; size_t pos; + prne_memzero(&ep, sizeof(ep)); + pos = rm[1].rm_eo - rm[1].rm_so; memcpy(str, arg + rm[1].rm_so, pos); str[pos] = 0; @@ -271,6 +273,8 @@ static bool parse_param (const char *arg) { prne_net_endpoint_t ep; size_t pos; + prne_memzero(&ep, sizeof(ep)); + pos = rm[1].rm_eo - rm[1].rm_so; memcpy(str, arg + rm[1].rm_so, rm[1].rm_eo - rm[1].rm_so); str[pos] = 0; -- cgit