Skip to content

Zhang Te: Only I am able to understand those code and contact to me by [email protected]

Notifications You must be signed in to change notification settings

NEEMSYS/inject-to-branch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

inject-to-branch

if-else根据AST寻找行号,然后对源代码文件插入, AST使用libclang生成(不能直接用clang的命令行参数生成,行号不对,只在app.c的情况下不对)

switch-case 直接字符串查找case行,在:后面加入即可

运行

python modify_src2.py file.c

即可生成对应插桩的injected.c文件 代码粗糙,无需优化

About

Zhang Te: Only I am able to understand those code and contact to me by [email protected]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages