Get the latest tech news
Show HN: ELF Injector
Injects code into an ELF file . Contribute to dillstead/elf_injector development by creating an account on GitHub.
Taking into account the size of the registers pushed onto the stack at the start of the thunk, load the value of argc nto r0, and the address of the first entry of argv into r1. Preserving modular congruency requires that the total number of bytes inserted are a multiple of the page size, padding is used by the elf_injector to ensure that this is the case. Chris Wellons for a number of different techniques for "libc free" programming used in the code from arena allocation to systam calls.
Or read this on Hacker News