ftrace-hook Linux kernel module demonstrating usage of ftrace framework for function hooking: as in executing arbitrary code around the hooked function. The code is licensed under GPLv2. How to build Please consider using a virtual machine (VirtulBox, VMWare, QEMU, etc.) for experiments. The (...
使用ftrace: //在头文件中写上hook数组structftrace_hookhooks[]={HOOK("__x64_sys_mkdir",hook_mkdir,&orig_mkdir),HOOK("__x64_sys_getdents",hook_getdents,&orig_getdents)};//在模块初始化时执行hook安装fh_install_hooks(hooks,ARRAY_SIZE(hooks));//在模块卸载化时执行hook卸载fh_remove_hooks(...
$ cd ftrace-hook $ make make -C /lib/modules/4.9.0-5-amd64/build M=/home/ilammy/dev/ftrace-hook modules make[1]: Entering directory '/usr/src/linux-headers-4.9.0-5-amd64' CC [M] /home/ilammy/dev/ftrace-hook/ftrace_hook.o Building modules, stage 2. MODPOST 1 modules CC /hom...
【linux内核调试】使用Ftrace来Hook linux内核函数 【linux内核调试】ftrace/kprobes/SystemTap内核调试方法对比 【KVM】KVM学习—实现自己的内核 Reference: linux-security-papers linux-kernel-exploitation GoSSIP_Software Security Group 为什么是最好的 GitHub 项目? 技术的发展速度比以往任何时候都快,技术正在...
项目地址:https://github.com/Tencent/libcolibco通过仅有的几个函数接口 co_create/co_resume/co_yield 再配合 co_poll,可以支持同步或者异步的写法,如线程库一样轻松。同时库里面提供了socket族函数的hook,使得后台逻辑服务几乎不用修改逻辑代码就可以完成异步化改造。
So since most current rootkits use ftrace, why not disable it? You can do this to search for PIDs, hidden directories for example. By disabling ftrace you basically make any ftrace hook useless, but if you enable it again, the hooks will work again. (remembering that there are ways to ...
ilammy /ftrace-hook Using ftrace for function hooking in Linux kernel C26672UpdatedMar 21, 2021 run /linux0.11 Linux archaeology C5853UpdatedNov 3, 2017 houxiaohou /Guitar-Tunner The Guitar Tunner C3723UpdatedNov 8, 2012 chenyueqi /SLAKE ...
ftrace_irq.h ftrace_regs.h futex.h fw_table.h fwnode.h fwnode_mdio.h gameport.h gcd.h genalloc.h generic-radix-tree.h genl_magic_func.h genl_magic_struct.h getcpu.h gfp.h gfp_api.h gfp_types.h glob.h gnss.h goldfish.h gpio-pxa.h gpio.h gpio_keys.h greybus.h group_cpus...
4 changes: 4 additions & 0 deletions 4 linux_kernel/hook.h Original file line numberDiff line numberDiff line change @@ -0,0 +1,4 @@ #pragma once #include "head.h" extern bool init_hooks(void); extern void uninstall_hooks(void); 34 changes: 25 additions & 9 deletions 34 linux_...
It was heavily inspired by the ftrace framework of the Linux kernel and the name uftrace stems from the combination of user and ftrace. It can record data from: User space C/C++/Rust functions, by either dynamically patching functions using -P., or else selective NOP patching using code com...