blob: 3d396cbf2cd9176258839d15190a40eade34b233 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#pragma once
#include "protocol.h"
#include "util_ct.h"
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
typedef struct prne_htbt_host_info prne_htbt_host_info_t;
typedef enum {
PRNE_HTBT_OP_HOST_INFO,
PRNE_HTBT_OP_CMD,
PRNE_HTBT_OP_NY_BIN,
PRNE_HTBT_OP_RSP,
NB_PRNE_HTBT_OP
} prne_htbt_op_t;
PRNE_LIMIT_ENUM(prne_htbt_op_t, NB_PRNE_HTBT_OP, 0xFF);
typedef enum {
PRNE_HTBT_RSP_OK,
PRNE_HTBT_RSP_ERRNO,
NB_PRNE_HTBT_RSP
} prne_htbt_rsp_t;
PRNE_LIMIT_ENUM(prne_htbt_rsp_t, NB_PRNE_HTBT_RSP, 0xFF);
struct prne_htbt_host_info {
char prog_ver[36];
uint64_t uptime;
uint64_t rerun_cnt;
uint64_t bne_cnt;
uint64_t infect_cnt;
uint32_t god_pid;
uint32_t proone_pid;
const char *cred_str;
uint8_t cred_id_len;
uint8_t cred_pw_len;
prne_arch_t arch;
};
|