test Platform is 32 bit Linux ELF and 32 bit Windows PE.
I use IDC script to extract all the functions from binary and dump into a file, then do the analysis based on the examples in IDA Pro book.
But I don't know how to extract .data .rodata and .bss sections from ELF file using IDC script.
Currently I use IDA Pro to create a asm file, and use Python script to do the string parser work, extracting .data .rodata and .bss sections from this asm file.
Basically It works fine, but a really tedious modification work is required, and as my test base is relatively large(notepad++ and others..), I have to spend lots of time do modify work to correctly extract this three sections.
My question is "is there any idc script/idapython script can extract .data .rodata and .bss sections from ELF file?" and any solutions on Windows are also welcomed.
Thank you!