add: additional information to ptrace command

This commit adds more information to the ptrace command to allow better integration with external features.
This commit is contained in:
ThePedroo
2024-08-10 13:43:14 -03:00
parent 88f1b7fdb9
commit 75a004f9d5
6 changed files with 139 additions and 21 deletions

View File

@@ -283,6 +283,12 @@ fn handle_daemon_action(
let pid = unsafe { libc::getpid() };
stream.write_u32(pid as u32)?;
stream.write_usize(context.modules.len())?;
for module in context.modules.iter() {
stream.write_string(&module.name)?;
}
}
DaemonSocketAction::ReadModules => {
stream.write_usize(context.modules.len())?;