mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-21 01:03:08 +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:
14
src/ebpf/include/utils/modules.h
Normal file
14
src/ebpf/include/utils/modules.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __MODULES_H
|
||||
#define __MODULES_H
|
||||
|
||||
#define RETURN_VALUE_MODULE_NONACTIVE -1
|
||||
//Access user-defined config
|
||||
#include "../../user/include/modules/module_manager.h"
|
||||
|
||||
|
||||
#define CHECK_MODULE_ACTIVE(module, func)\
|
||||
if( module_config. module##_module.all != ON){\
|
||||
return RETURN_VALUE_MODULE_NONACTIVE;\
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user