Skip to content

Instantly share code, notes, and snippets.

@alonstern
Last active April 12, 2020 21:14
Show Gist options
  • Select an option

  • Save alonstern/5ab831d4ace23adc055e0e819312e12d to your computer and use it in GitHub Desktop.

Select an option

Save alonstern/5ab831d4ace23adc055e0e819312e12d to your computer and use it in GitHub Desktop.
Extract code from an elf file
def _generate_data(self, binary_elf: ELFFile):
return numpy.array(list(binary_elf.get_section_by_name(".text").data()), dtype=int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment