示例#1
0
 def read_print(cls, addr, lenptr):
     print "+++ ReadFile"
     try:
         count = struct.unpack("<I", cls.read(lenptr, 4))[0]
         data = cls.read(addr, min(count, 0x100))
         hexdump(data, addr)
     except WindowsError:
         print " No data"
     return pydbgeng.DEBUG_STATUS_GO
示例#2
0
def wfhandler(bp, cls):
    print "+++ WriteFile"
    if cls.is64bit():
        addr, len = cls.reg.rdx, cls.reg.r8
    else:
        addr = cls.readptr(w.reg.esp + 8)[0]
        len  = cls.readptr(w.reg.esp + 12)[0]
    data = cls.read(addr, len)
    hexdump(data, addr)
    return pydbgeng.DEBUG_STATUS_GO