sam_modem_ramdump.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:shannonRE 作者: Comsecuris 项目源码 文件源码
def load_file(li, neflags, format):

    idaapi.set_processor_type("arm", SETPROC_ALL|SETPROC_FATAL)

    offs = 0

    for s in segments:
        start = s["start"]
        length = s["len"]
        name = s["name"]
        seg_type = s["type"]

        li.file2base(offs, start, start+length, True)
        idaapi.add_segm(0, start, start+length, name, seg_type)

        offs += length

    create_modem_hdr_struct()
    add_modem_hdr_struct(8*4 + segments[0]["start"]) #this might fail unless we carve out a DATA segment from the CODE segment for it.

    print "Samsung Shannon image loaded."
    return 1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号