-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep list of threads inside Linux Target #65
Comments
Does that plan looks right @bjorn3 ? |
Yes |
I threw together a little sketch to play around with PTRACE_O_TRACECLONE. The important part in the snippet is the waitpid(None, None)?; It uses
Thus, it also gets the status for all child processes (threads) and can be used to track threads. |
That will likely cause interference between multiple headcrab sessions. Does the parent thread itself get suspended too? |
I don't think so unless waitpid returns a status for the parent. |
I think it actually does get suspended. |
Ah yes, you right. 😅 |
From #47 discussion it is my understanding that we need to keep a list of threads inside target that is continuously updated as threads come and go
To do this we need to:
The text was updated successfully, but these errors were encountered: