Difference between revisions of "Compel"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* Check socket FDs to get stuck/closed, re-open them and dup2() into original places | * Check socket FDs to get stuck/closed, re-open them and dup2() into original places | ||
** Problem: how to inform the original process about this change | ** Problem: how to inform the original process about this change | ||
+ | |||
+ | Another is to do some activity on the victim and then just unload. With this we can | ||
+ | |||
+ | * Death detection. Open pipe/socket and pass the other end outside. Once the victim dies the pipe/socket will wake up. | ||
[[Category:Empty articles]] | [[Category:Empty articles]] | ||
[[Category:Sub-projects]] | [[Category:Sub-projects]] |
Revision as of 12:12, 8 February 2016
Usage ideas
One thing parasite code can do is call clone() and create thread having access to main process VM, FDT, FS, etc. The new thread can then
- Check socket FDs to get stuck/closed, re-open them and dup2() into original places
- Problem: how to inform the original process about this change
Another is to do some activity on the victim and then just unload. With this we can
- Death detection. Open pipe/socket and pass the other end outside. Once the victim dies the pipe/socket will wake up.