mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-20 16:53:07 +08:00
Included a global config struct for controlling which hooks and functions of the rootkit should be active. Still work to be done in the bpf side
This commit is contained in:
@@ -1,10 +1,25 @@
|
||||
#ifndef __MOD_MANAGER_H
|
||||
#define __MOD_MANAGER_H
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct module_config{
|
||||
//TODO
|
||||
};
|
||||
#define ON 1
|
||||
#define OFF 0
|
||||
|
||||
//Centralized configutation struct
|
||||
typedef struct module_config_t{
|
||||
struct xdp_module {
|
||||
char all;
|
||||
char xdp_receive;
|
||||
} xdp_module;
|
||||
|
||||
struct sched_module {
|
||||
char all;
|
||||
char handle_sched_process_exec;
|
||||
}sched_module;
|
||||
|
||||
} module_config_t;
|
||||
|
||||
extern module_config_t module_config;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user