python类get_screen_ea()的实例源码

painting.py 文件源码 项目:lighthouse 作者: gaasedelen 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def _priority_paint(self):
        """
        Immediately repaint regions of the database visible to the user.
        """
        cursor_address = idaapi.get_screen_ea() # TODO: threadsafe?

        # paint functions around the cursor address
        painted = self._priority_paint_functions(cursor_address)

        # the operation has been interrupted by a repaint request
        if self._repaint_requested:
            return False

        # paint instructions around the cursor address
        self._priority_paint_instructions(cursor_address, ignore=painted)

        # the operation has been interrupted by a repaint request
        if self._repaint_requested:
            return False

        # succesful completion
        return True
ida_func_ptr.py 文件源码 项目:ida_func_ptr 作者: HandsomeMatt 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def get_cursor_func_ref():
    current_tform  = idaapi.get_current_tform()
    tform_type     = idaapi.get_tform_type(current_tform)

    # get the hexrays vdui (if available)
    vu = idaapi.get_tform_vdui(current_tform)
    if vu:
        cursor_addr = vu.item.get_ea()
    elif tform_type == idaapi.BWN_DISASM:
        cursor_addr = idaapi.get_screen_ea()

        op_addr = idc.GetOperandValue(cursor_addr, idaapi.get_opnum())
        op_func = idaapi.get_func(op_addr)
        if op_func and op_func.startEA == op_addr:
            return op_addr

    else:
        return idaapi.BADADDR

    cursor_func = idaapi.get_func(cursor_addr)
    if cursor_func and cursor_func.startEA == cursor_addr:
        return cursor_addr

    return idaapi.BADADDR
ui.py 文件源码 项目:idascripts 作者: ctfhacker 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def address(cls):
        """Current address"""
        return idaapi.get_screen_ea()
idc.py 文件源码 项目:DecLLVM 作者: F8LEFT 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def ScreenEA():
    """
    Get linear address of cursor
    """
    return idaapi.get_screen_ea()


问题


面经


文章

微信
公众号

扫码关注公众号