How to extract only the raw contents of an ELF section?

后端 未结 4 516
说谎
说谎 2020-12-01 04:16

I\'ve tried the following, but the resulting file is still an ELF and not purely the section content.

$ objcopy --only-section=  &l         


        
4条回答
  •  天涯浪人
    2020-12-01 05:07

    Dump all sections in separate files.

    readelf -a filename|grep "NULL\|LOAD"| (x=0;while read a;do echo "$x $a"|awk '{print "dd if=143 of=filename.section."$1" bs=1 skip=$((" $3")) count=$(("$6"))"}';let x=x+1;done)|bash
    

提交回复
热议问题