Ejemplo n.º 1
0
    def OnCreate(self, form):
        self.IDAUtil = IDA.Util()
        self.ImageName = idaapi.get_root_filename()
        self.ImageBase = idaapi.get_imagebase()

        self.parent = self.FormToPyQtWidget(form)

        self.Tree = QtWidgets.QTreeWidget()
        self.Tree.setHeaderLabels(("Name", "Address"))
        self.Tree.setColumnWidth(0, 200)
        self.Tree.setColumnWidth(1, 100)

        self.Tree.itemClicked.connect(self.treeClicked)

        layout = QtWidgets.QVBoxLayout()
        layout.addWidget(self.Tree)

        self.PopulateTree()
        self.parent.setLayout(layout)
Ejemplo n.º 2
0
import sys
import pprint
from idaapi import *
from idc import *

import idaapi
import idautils
from idaapi import PluginForm
from PyQt5 import QtGui, QtCore, QtWidgets
import pprint
from TraceLoader import *
import IDA
import json
from Config import *
import PyVexAnalyzer
import Common

ida_util = IDA.Util()

for instruction_info in ida_util.DumpInstructions():
    addr = instruction_info['Address']
    bytes = instruction_info['Bytes']

    print('>> Disasm: %.8x %s' % (addr, instruction_info['Disasm']))
    parser = PyVexAnalyzer.Parser(bytes, addr, 'x64')
    parser.print(False)