Package Libs :: Module libheap :: Class PHeap
[hide private]
[frames] | no frames]

Class PHeap

source code

Known Subclasses:
VistaPHeap

Instance Methods [hide private]
PHEAP object __init__(self, imm, heapddr=0, restore=False)
Windows 32 Heap Class
  _grabHeap(self)
  printFreeListInUse(self, uselog=None)
Print the Heap's FreeListInUse bitmask
  printFreeList(self, uselog=None)
Print the Heap's FreeList
List of win32heapchunks getRestoredChunks(self, address)
Enumerate Chunks of the current heap using a restore heap
win32heapchunks findChunkByAddress(self, addr)
Find a Chunks by its address
List of win32heapchunks getChunks(self, address, size=0xffffffffL)
Enumerate Chunks of the current heap
  get_chunk(self, addr)

Method Details [hide private]

__init__(self, imm, heapddr=0, restore=False)
(Constructor)

source code 
Windows 32 Heap Class
Returns: PHEAP object

_grabHeap(self)

source code 
None

printFreeListInUse(self, uselog=None)

source code 
Print the Heap's FreeListInUse bitmask
Parameters:
  • uselog (Log Function) - (Optional, Def: Log Window) Log function that display the information

printFreeList(self, uselog=None)

source code 
Print the Heap's FreeList
Parameters:
  • uselog (Log Function) - (Optional, Def: Log Window) Log function that display the information

getRestoredChunks(self, address)

source code 
Enumerate Chunks of the current heap using a restore heap
Parameters:
  • address (DWORD) - Address where to start getting chunks
Returns: List of win32heapchunks
Chunks

findChunkByAddress(self, addr)

source code 
Find a Chunks by its address
Parameters:
  • address (DWORD) - Address to search for
Returns: win32heapchunks
Chunk

getChunks(self, address, size=0xffffffffL)

source code 
Enumerate Chunks of the current heap
Parameters:
  • address (DWORD) - Address where to start getting chunks
  • size (DWORD) - (Optional, Def: All) Amount of chunks
Returns: List of win32heapchunks
Chunks

get_chunk(self, addr)

source code 
None