mytrace-demo
This is a demo using strace to hijack syscall.
Skeleton is anywhere outside comment //specific logic
.
./tracer
is the parent process who hijack ./tracee
's syscall. In this example, it hijacks mmap
and copied it to a
specific area.
Note that it can't run directly because the current code is part of a bigger project.
Make
# make clean
make
usage
./tracee
./tracer $(pidof tracee)