This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import struct | |
class vhdStruct(object): | |
def __init__(self): | |
self._structSize = None | |
self._buffer = None | |
self._checsumOffset = None | |
self._offset = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getGUID(ea): | |
data1 = idc.GetManyBytes(ea,4) | |
data1 = struct.unpack("<I",data1)[0] | |
#print "%08x" % (data1) | |
ea += 4 | |
data2 = idc.GetManyBytes(ea,2) | |
data2 = struct.unpack("<H",data2)[0] | |
#print "%04x" % (data2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
allocations = {} | |
class FunctionFinishBreakpoint(gdb.FinishBreakpoint): | |
def __init__ (self,allocation): | |
gdb.FinishBreakpoint.__init__(self,gdb.newest_frame(), internal=True) | |
self.silent = True | |
self.allocation = allocation | |
def stop(self): |