Skip to content

hugoxue1/svc_hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

svc_hook

svc hook demo

  • hook openat read
 svc_hook(__NR_openat, NULL, (void *)&after_openat, NULL);
 svc_hook(__NR_read, NULL, NULL, NULL);
  • trace open and read
redfin:/ # /data/local/tmp/main
===== handle syscall no 56 : sys_openat
after_openat /proc/self/maps
open fd is 3
===== handle syscall no 63 : sys_read
read buf : 65348f7000-65349

===== handle syscall no 63 : sys_read

About

svc hook demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.0%
  • Makefile 1.2%
  • C 0.8%