
hook
yldfree
有技术就是一切
展开
-
利用ptrace进行注入
转载:https://bbs.pediy.com/thread-246948.htm插入的代码#include <stdio.h>#include <unistd.h>int main(){ __asm__( "jmp forward\n\t" "backword:popq %rsi\n\t" ...转载 2019-11-07 21:06:47 · 1542 阅读 · 0 评论 -
hook之subhook使用1
subhook git地址 https://github.com/Zeex/subhook//下面对open函数进行拦截#include <sys/stat.h>#include <fcntl.h>#include "subhook.h"subhook_t foo_hook;//此函数将替换系统中的open函数int my_open(const char *pathname...原创 2018-06-27 19:33:14 · 2524 阅读 · 0 评论 -
hook之subhook使用2
subhook源码下载地址 https://github.com/Zeex/subhook//对系统函数open进行拦截#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include "subhook.h"subhook_t foo_hoo...原创 2018-06-27 19:38:03 · 2149 阅读 · 0 评论