miasm icon indicating copy to clipboard operation
miasm copied to clipboard

Increasing the size of a section (rodata) in ELF binary

Open Nikhil1212 opened this issue 3 years ago • 1 comments

Hi everyone, I would like to add a new string constant to my binary (ELF). So, for that, I want to increase the size of the rodata section so that my constant string fits in rodata. May I know how we can increase the size of a particular section (rodata) using miasm.

Thanks for the help

Nikhil1212 avatar Sep 29 '21 18:09 Nikhil1212

Hi @Nikhil1212 I am afraid the elf parser (elfesteem) is broken and may fail at doing this :disappointed: Maybe you give a try to Lief: https://github.com/lief-project/LIEF

serpilliere avatar Sep 30 '21 06:09 serpilliere