aboutsummaryrefslogtreecommitdiff
path: root/src/proone-htbtclient.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2021-08-12 16:01:50 +1000
committerDavid Timber <mieabby@gmail.com>2021-08-12 16:01:50 +1000
commita685a85d71e4948c61e811ca24c7b85d601bfcba (patch)
tree37a96e1f63a574cd80df73a41a9febc81376032b /src/proone-htbtclient.c
parentbbd889f13f94d59a5b78f3c3bc93499d523b8264 (diff)
Recon: use ICMPv6 echo instead of random SYN ...
* proone-htbtclient: mlock() tls password * Recon * Send ICMPv6 echo requests to discover IPv6 hosts in the link-local network * Check OS code as the implementation is heavily os-dependent * Fix wrong II_UPDATE values * Fix sending wrong number of SYN packets
Diffstat (limited to 'src/proone-htbtclient.c')
-rw-r--r--src/proone-htbtclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proone-htbtclient.c b/src/proone-htbtclient.c
index 533330f..d120ecf 100644
--- a/src/proone-htbtclient.c
+++ b/src/proone-htbtclient.c
@@ -360,6 +360,7 @@ static void deinit_prog_g (void) {
}
static void init_prog_conf (void) {
+ mlock(prog_conf.tls_key_pw, sizeof(prog_conf.tls_key_pw));
prne_memzero(&prog_conf, sizeof(prog_conf)); // so main() is recallable
prog_conf.remote_port = prne_dup_str(STRINGIFY_X(PRNE_HTBT_PROTO_PORT));
prog_conf.prne_vl = PRNE_VL_INFO;