I want to write an application for introducing the library into the android process. First of all, I have to
displays protected memory in a remote process, it is used to perform the injection function.
Now the problem is here and all processes are able to reach memory, with the exception of Zygote!
Although I set the LR register to 0x00000000, but still block in waitpid ()
----- I did not receive a SIGSEVG signal, I hope you can help me, thanks.
SOURCE OF PREPARATION
//fake saved return address, triggering a SIGSEGV to catch regs->ARM_lr = 0x00000000; ptrace_setregs( pid, regs ); ptrace_cont(pid); int status; int id = 0; do { id = waitpid(pid, &status, WUNTRACED);//The process was blocked ....! Why..? printf("[+] id:%d,signal:%d\n",id,WSTOPSIG(status)); } while ((id != pid) || (WSTOPSIG(status) != SIGSEGV));
source share