How do I know which function has called the kill method via svc? #227
Unanswered
w296488320
asked this question in
Q&A
Replies: 1 comment
-
I'd recommend attaching debugger to target inside proot (with debugger also running inside proot) and seeing what registers are set to If you want to stop program at point of particular syscall do |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found a function that calls the kill function via svc and I want to know where the kill is called,
I tried to intercept by ptrace and judging by the system call number if it was a kill function I tried to print his FP register but get 0 .
I add the reg.cpp to the original one
ARCH_ARM64 -> [FRAME_POINTER] = USER_REGS_OFFSET(regs[29]),
ARCH_ARM_EABI -> [FRAME_POINTER] = USER_REGS_OFFSET(uregs[12]),
I don t know if it s because I write wrong causing the FP register is equal 0 or the original FP register is equal 0。
Do you have any good advice?Great developer
Beta Was this translation helpful? Give feedback.
All reactions