6 More Discussions You Might Find Interesting
I use ptrace to capture the OPEN syscall, and find problems on getting filename as its argument. Basically, what ebx returns is a pointer to the filename of file to open. My code is as follows, and the program keep throwing segment fault. Besides, even if I can get filePath, how can I know... (2 Replies)
Discussion started by: tristartom
I am trying to trap system calls using ptrace available on Salaris. How to get the system call number which I am going to trap.
In Linux I have done like below:
4 * ORIG_EAX, NULL);
where PTRACE_PEEKUSER : is the request, this specifies the... (1 Reply)
Discussion started by: Patel
hi,'m using the 5.11 kernel version on amd64 architecture, 32-bit. i need help on the following issues
1)a proper structure to represent the register structure in the architecture
2)a function which would change the register values of the child when the control is with the parent.. ptrace_setregs... (0 Replies)
Discussion started by: sayaproj
I want to post a question!I am confused about the explanation of ptrace command.
ins=ptrace(PTRACE_GETREGS,pid,NULL,®s); with this command i am able to read, for instance, regs.eip context or get regs.eip address?
And if i write the commad... (2 Replies)
Discussion started by: nicos
Kindly correct me if any of the foll is wrong:
I want to trace the current process from the C program itself which I think can be done using
I would like to get control back after a segmentation fault, or arithmetric exception (i.e. all signals that end... (1 Reply)
Discussion started by: vpraveen84
I'm trying to obtain process memory contents using ptrace( ) on FreeBSD 4.7. I know this is neither portable nor clean, yet I'd really like to get it to work... I read the manual help page and did a google search, but couldn't find anything helpful.
First, the code I'm using to read an... (5 Replies)
Discussion started by: Driver