ida.py 文件源码

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

项目:bap-ida-python 作者: BinaryAnalysisPlatform 项目源码 文件源码
def output_segments(out):
    """Dump binary segmentation."""
    info = idaapi.get_inf_structure()
    size = "r32" if info.is_32bit else "r64"
    out.writelines(('(', info.get_proc_name()[1], ' ', size, ' ('))
    for seg in idautils.Segments():
        out.write("\n({} {} {:d} ({:#x} {:d}))".format(
            idaapi.get_segm_name(seg),
            "code" if idaapi.segtype(seg) == idaapi.SEG_CODE else "data",
            idaapi.get_fileregion_offset(seg),
            seg, idaapi.getseg(seg).size()))
    out.write("))\n")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号