rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

Use CLE from angr project to load dynamically linked executable

Open erdnaxe opened this issue 1 year ago • 3 comments

This patch proposes to use CLE as a dynamic library loader.

This enables users to load dynamically linked executable. This greatly simplifies the simulation of programs linked with glibc as one would usually only need to hook calloc, malloc and free functions.

To make this patch fully usable, https://github.com/Ledger-Donjon/rainbow/pull/51 is needed.

erdnaxe avatar Sep 27 '23 11:09 erdnaxe

Thank you very much, very useful. Do you think cle could replace the other wonky loaders (ELF, PE, ... )? Would be a nice cleanup.

yhql avatar Oct 24 '23 11:10 yhql

Thank you very much, very useful. Do you think cle could replace the other wonky loaders (ELF, PE, ... )? Would be a nice cleanup.

  • For ELF loader, CLE seems to handle more cases than current elfloader.
  • Same for PE loader.
  • As far as I know, CLE does not handle a hex loader.

Would it be okay if I propose to drop peloader and elfloader in this pull request?

erdnaxe avatar Nov 28 '23 09:11 erdnaxe

Would it be okay if I propose to drop peloader and elfloader in this pull request?

Yes you can :)

yhql avatar Nov 28 '23 09:11 yhql