diff options
author | David Timber <mieabby@gmail.com> | 2021-08-17 12:07:24 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-08-17 12:07:24 +1000 |
commit | af9f23da9f3ce89353cf06878bf8ab49b405e331 (patch) | |
tree | f49c0aaa74ee09ca11c03f0aead5010d41eb18f6 /src/proone-htbthost.c | |
parent | a161674bcee21384a73834e3ca16ad3bf1c70cf3 (diff) |
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
Diffstat (limited to 'src/proone-htbthost.c')
-rw-r--r-- | src/proone-htbthost.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |