Re:Show HN: dlinject.py – Inject a .so into a running Linux ...
by geofft on Wednesday January 01, 2020 @05:54PM
(#21931330)
Ahhh, yes, it's probably hard to track down a random
subprocess somewhere that's checking and then passing that info back to the original process. (I think the subprocess could even just try to PTRACE_ATTACH the original process and see if it works.)
Depends on if all threads were put into a paused state. Also, the program that's being debugged might have spawned some additional processes that will be checking if the parent is being ptraced.
Replace "self" with the PID you want to check if it is being traced: