I have different pieces of code which I want to inserted at the end of each basic block in CFG (Control Flow Graph). We don't have the source code. An executable file is available. I have read a lot about code injection. Basically, I have read about static binary instrumentation (Binary Patching), there are two types of instrumentations: Static and Dynamic binary instrumentation. Static binary instrumentation is what I need in my work. I have checked several tools and api. Finally I found Dyninst api. I installed it but at this time, I failed to inject my code. I checked another api but all of them are ambiguous. Is there any full example describes how to use an easy static instrumentation. Thanks a lot.

Thanks a lot.

More Hussein Al-haj Ahmad's questions See All
Similar questions and discussions