Beispiel #1
0
def _magic_bd(self, s):
    """Backwards decompilation
    
    Examples: 
    d FF0669F4
    """
    if idapy._d is None:
        print "Please select a dump first. Example:"
        print "sel t2i"
        return
    a = addr_from_magic_string(s)
    bkt.back_deco(a)
Beispiel #2
0
def _magic_bgmt(self, s):
    """Find a button code, as seen by gui_main_task (BGMT code)
    
    Example: 
    bgmt 0x820
    """
    s = s.strip()
    if idapy._d is None:
        print "Please select a dump first. Example:"
        print "sel t2i"
        return
    a = addr_from_magic_string(s, rounded_32bit = False)
    f = idapy._d.Fun("gui_massive_event_loop")
    r = find_refs(idapy._d, a, f.addr)
    
    for a,v in r:
        bkt.back_deco(a)
    
    print r