From 5c70a63e02ae26bdfae14444d91f5f96bf74f505 Mon Sep 17 00:00:00 2001 From: David Timber Date: Wed, 14 Jul 2021 11:06:56 +1000 Subject: Impl proone-htbtclient, htbt bugfixes ... * htbt * Fix stdout-stderr round-robin sending algo in htbt_relay_child() * Fix logic error and crash bug in htbt_slv_srv_bin() * Impl proone-htbtclient runcmd command * Change signature of prne_htbt_set_cmd() --- src/proone-test_proto.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/proone-test_proto.c') diff --git a/src/proone-test_proto.c b/src/proone-test_proto.c index 5f61a32..e8c0ef8 100644 --- a/src/proone-test_proto.c +++ b/src/proone-test_proto.c @@ -38,7 +38,7 @@ static void test_ser (void) { static size_t cred_data_len = 0; static prne_htbt_host_info_t hi_a, hi_b; static prne_htbt_cmd_t cmd_a, cmd_b; - static char *test_args[] = { + static const char *test_args[] = { "sudo", "systemctl", "enable", @@ -48,10 +48,10 @@ static void test_ser (void) { }; static char test_args_mem[] = "\x00\x2Bsudo\0systemctl\0enable\0--now\0NetworkManager"; - static char *empty_args[] = { + static const char *empty_args[] = { NULL }; - static char *long_args[] = { + static const char *long_args[] = { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", @@ -69,7 +69,7 @@ static void test_ser (void) { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", NULL }; - static char *too_long_args[] = { + static const char *too_long_args[] = { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", @@ -88,7 +88,7 @@ static void test_ser (void) { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", NULL }; - static char *long_mem_args[] = { + static const char *long_mem_args[] = { "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", @@ -122,7 +122,7 @@ static void test_ser (void) { "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123456", NULL }; - static char *too_long_mem_args[] = { + static const char *too_long_mem_args[] = { "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", "123", -- cgit