Answer the question
In order to leave comments, you need to log in
How to get information about the process that completed its work?
Hello.
As far as I remember, if the parent of the process terminates, then init becomes the parent. And how can you get information about the primary parent of a process if this parent has already completed its work? Is it possible to get information about the parent of the primary parent?
Assume that an attacker has gained access to the server. Then, in his ssh session, he performs a chain of forks that spawns a certain worker. So, how to spin up this whole chain, having only one PID of the worker?
Answer the question
In order to leave comments, you need to log in
if the parent of the process terminates, then init becomes the parent.What is init the parent of?
Is it possible to get information about the parent of the primary parent?Usually this is init.
how to spin up this whole chain, having only one PID of the worker?If the process exists in one form or another, you can see the process tree and its ancestor. Only sense from this?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question