dsc_fix.py 文件源码

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

项目:dsc_fix 作者: deepinstinct 项目源码 文件源码
def make_islands_xrefs_force_bl_call(ea, verbose=True):
    """ makes all BL references to a branch islands as call """
    segname = idc.SegName(ea)
    if verbose:
        print "[+] forcing bl call on: %s [0x%X]" % (segname, ea)
    if "branch_islands" in segname:
        idc.SetFunctionFlags(ea, idc.GetFunctionFlags(ea) & (0xffffffff - 1))
        for x in idautils.XrefsTo(ea):
            make_islands_xrefs_force_bl_call(x.frm)
        return
    idc.ArmForceBLCall(ea)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号