當前位置: 首頁>>代碼示例>>Python>>正文


Python idaapi.jumpto方法代碼示例

本文整理匯總了Python中idaapi.jumpto方法的典型用法代碼示例。如果您正苦於以下問題:Python idaapi.jumpto方法的具體用法?Python idaapi.jumpto怎麽用?Python idaapi.jumpto使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在idaapi的用法示例。


在下文中一共展示了idaapi.jumpto方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: goto

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def goto(shift=False):
    print("GhIDA:: [DEBUG] goto called")

    symbol = None
    ret = ida_kernwin.get_highlight(ida_kernwin.get_current_viewer())
    if ret and ret[1]:
        symbol = ret[0]

    if not symbol:
        return False

    address = gl.get_address_for_symbol(symbol)
    if not address:
        return False

    print("OnDblClick, shift=%d, selection:%s, address:%s" %
          (shift, symbol, address))

    # Update IDA DISASM view
    idaapi.jumpto(address)

    # Update IDA DECOMP view
    ea = gl.convert_address(address)
    print("GhIDA:: [DEBUG] update view to %s" % ea)
    DECOMP_VIEW.switch_to_address(ea)

    return True


# ------------------------------------------------------------
#   SIMPLECUSTVIEWER FOR THE DECOMPILED RESULT
# ------------------------------------------------------------

# Check this example: https://github.com/nologic/idaref/blob/master/idaref.py 
開發者ID:Cisco-Talos,項目名稱:GhIDA,代碼行數:36,代碼來源:ghida.py

示例2: jumpto_expr

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def jumpto_expr(expr):
    ea = idaapi.str2ea(expr)
    if ea == BADADDR:
        return False
    return idaapi.jumpto(ea)

# -------------------------------------------------------------------------- 
開發者ID:danigargu,項目名稱:heap-viewer,代碼行數:9,代碼來源:misc.py

示例3: on_double_click

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def on_double_click(self, value, attrs):
        idaapi.jumpto(value)
        return False 
開發者ID:tmr232,項目名稱:Sark,代碼行數:5,代碼來源:ui.py

示例4: OnDblClick

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def OnDblClick(self, node_id):
        # On double-click, jump to the clicked address.
        idaapi.jumpto(self[node_id])

        return True 
開發者ID:tmr232,項目名稱:Sark,代碼行數:7,代碼來源:lca.py

示例5: navigate

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def navigate(self, address):
        return idaapi.jumpto(address) 
開發者ID:gaasedelen,項目名稱:lighthouse,代碼行數:4,代碼來源:ida_api.py

示例6: show_trace_point

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def show_trace_point(self, p):
        idaapi.jumpto(p.addr) 
開發者ID:BinaryAnalysisPlatform,項目名稱:bap-ida-python,代碼行數:4,代碼來源:bap_trace.py

示例7: _dblclick

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def _dblclick(self, item):
        '''
        Handles double click event.
        '''
        try:
            idaapi.jumpto(int(item.text(1), 16))
        except:
            pass 
開發者ID:ax330d,項目名稱:functions-plus,代碼行數:10,代碼來源:functions_plus.py

示例8: table_ops_doubleclicked

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def table_ops_doubleclicked(self, index):
        row = index.row()
        print("row = {}".format(row))
        addr = int(self.table_ops_found.item(row, 0).text(), 16)
        print("addr = {}".format(addr))
        idaapi.jumpto(addr) 
開發者ID:Riscure,項目名稱:DROP-IDA-plugin,代碼行數:8,代碼來源:gui.py

示例9: say_address

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def say_address(buddy):
    address = get_random_address()
    address_text = Span('0x{address:X}'.format(address=address), color='black', text_decoration='underline')
    buddy.interact(
        ask_go_cancel(random_address_saying().format(address_text)),
        go=lambda *_: (idaapi.jumpto(address), buddy.exit()),
        cancel=lambda *_: buddy.exit()) 
開發者ID:tmr232,項目名稱:IDABuddy,代碼行數:9,代碼來源:sequences.py

示例10: jumpto_in_view

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def jumpto_in_view(self, view, ea):
        idaapi.activate_widget(view, True)
        return idaapi.jumpto(ea)

# ----------------------------------------------------------------------- 
開發者ID:danigargu,項目名稱:deREferencing,代碼行數:7,代碼來源:custom.py

示例11: OnDblClick

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def OnDblClick(self, shift):
        symbol = self.get_current_word()
        if symbol is not None:
            ea = self.resolve_expr(symbol)
            if ea and idaapi.is_loaded(ea):
                idaapi.jumpto(ea)
                return True
        return False 
開發者ID:danigargu,項目名稱:deREferencing,代碼行數:10,代碼來源:stack.py

示例12: OnDblClick

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import jumpto [as 別名]
def OnDblClick(self, shift):
        symbol = self.get_current_word()
        if symbol is not None:
            if symbol.isupper() and symbol.replace("*","") in dbg.registers:
                self.modify_value()
                return True
            else:
                ea = self.resolve_expr(symbol)
                if ea and idaapi.is_loaded(ea):
                    idaapi.jumpto(ea)
                    return True
        return False 
開發者ID:danigargu,項目名稱:deREferencing,代碼行數:14,代碼來源:registers.py


注:本文中的idaapi.jumpto方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。