ptrace
Why doesn't ptrace SINGLESTEP work properly?
I am trying to trace a little program using ptrace API. I figured out that every time the tracer is run, it produces bad results. This is the disassembly of short program that I want to trace:[详细]
2023-04-11 20:47 分类:问答ptrace and threads
I\'m working on an linux application incorporating ptrace to observe the threads of another process. When the application I observe forks a child process this already works quite well. By calling wait[详细]
2023-04-01 22:26 分类:问答How to get a "backtrace" (like gdb) using only ptrace (linux, x86/x86_64)
I want to get a backtrace-like output as gdb does. But I want to do this via ptrace() directly. My platform is Linux, x86; and, later x86_64.[详细]
2023-04-01 18:12 分类:问答ELF x86 executable entry point
void*entrypoint; /*virtual address of process*/ fscanf(debuggedfile, \"%p\", &entrypoint); where debuggedfile is the stream to an elf f开发者_如何学Goile at the offset where int entry point is.[详细]
2023-03-21 05:23 分类:问答strace/ltrace outputs inconsistent info
strace pwd: getcwd("/root"..., 4096)= 6 ltrace pwd: getcwd(NULL, 0)= "/root" Why the 1st parameter is NULL in ltrace?[详细]
2023-03-15 08:51 分类:问答How to trace a program execution with ptrace?
I\'ve been trying to use the system call \"ptrace\" (using the PTRACE_SINGLESTEP macro) to trace the execution of a simple application.[详细]
2023-03-08 03:07 分类:问答program to monitor read/writes PATH of a program?
I was trying to make a program for a college project, but I got stuck at this: How will you monitor a program as to what files it writes to or reads from?[详细]
2023-02-21 20:07 分类:问答Linux: Executing syscall via ptrace()
Hey :) I am currently developing a memoryhacking-library for x86/x64 Linux. The point I struggle is to implement some kind of remote syscall execution.[详细]
2023-02-20 19:55 分类:问答UNIX ptrace() block child's system calls
I am deve开发者_如何学Cloping a grader for programming contests. Basically, the grader must run the solution program in an \'isolated\' process. So, I would like the solution not to call any harming s[详细]
2023-02-04 19:01 分类:问答How do I get signal details in debugger while ptrace?
I have a debugger that I am porting over to *bsd from linux. Currently, I am working on the OpenBSD version.[详细]
2023-01-20 10:34 分类:问答