예제 #1
0
 def buildContextMenu(self, va, size):
     menu = QMenu()
     menu.addAction('Copy Bytes To Clipboard', ACT(self.menuCopyBytesToClipboard, va, size))
     menu.addAction('Save Bytes To File', ACT(self.menuSaveBytesToFile, va, size))
     menu.addAction('Search Selected Memory Map', ACT(self.menuSearchMaps, va, size, allmaps=False))
     menu.addAction('Search All Memory Maps', ACT(self.menuSearchMaps, va, size, allmaps=True))
     return menu
예제 #2
0
def ctxMenuHook(vw, va, expr, menu, parent, nav):
    '''
    Context Menu handler (adds options as we wish)
    '''
    try:
        if va == 0x41414141:
            menu.addAction('WAT?', ACT(vw.vprint, "We're at AAAA!"))
        menu.addAction('bookmark (B)', ACT(vw.getVivGui().addBookmark, va))
        menu.addAction(
            'YEEE HAH',
            ACT(vw.vprint,
                "YEE HAH %x  %r %r %r %r" % (va, expr, menu, parent, nav)))
        menu.addAction(
            'YEEE HAH1',
            ACT(vprint, vw, "YEE HAH %x  %r %r %r %r", va, expr, menu, parent,
                nav))

    except Exception as e:
        import traceback
        traceback.print_exc()
예제 #3
0
def ctxMenuHook(vw, va, expr, menu, parent, nav):
    '''
    Context Menu handler (adds options as we wish)
    '''
    try:
        fva = vw.getFunction(va)
        if fva == va:
            # we're right clicking on a function
            menu.addAction('Symgrate2 Function Search', ACT(searchFunction, vw, fva))

    except Exception as e:
        import traceback
        traceback.print_exc()