Binary Symbolic Execution with KLEE-Native
blog.trailofbits.com
blog.trailofbits.com
> To do this, we use a neat trick of parsing the /proc/[pid]/maps file for the target process to discover the base virtual address of the loaded program.
Is there any better way to do this? Everyone I know just parses /proc/pid/maps for detecting the slide but this seems so ugly…
Another alternative, which I believe are both options available with PIN and DynamoRIO, is to implement or use an existing ELF loader, forking yourself, and loading in the target binary of interest at a known location.