Difference between revisions of "Lua:getModuleSize"
Jump to navigation
Jump to search
m (moved getModuleSize to Lua:getModuleSize) |
(→Related Functions) |
||
Line 36: | Line 36: | ||
=== Related Functions === | === Related Functions === | ||
− | * [[getAddress]] | + | * [[Lua:getAddress|getAddress]] |
− | * [[getSymbolInfo]] | + | * [[Lua:getSymbolInfo|getSymbolInfo]] |
− | * [[getProcesslist]] | + | * [[Lua:getProcesslist|getProcesslist]] |
− | * [[reinitializeSymbolhandler]] | + | * [[Lua:reinitializeSymbolhandler|reinitializeSymbolhandler]] |
− | * [[reinitializeDotNetSymbolhandler]] | + | * [[Lua:reinitializeDotNetSymbolhandler|reinitializeDotNetSymbolhandler]] |
Revision as of 00:45, 25 January 2018
function getModuleSize(ModuleName) : integer
Returns the size of a given module.
Tip: Use getAddress to get the base address.
Function Parameters
Parameter | Type | Description |
---|---|---|
ModuleName | string | The module name to get the size of |
Examples
Code:
local procAddr = 'Tutorial-x86_64.exe' print(string.format('%016X', getAddress(procAddr))) print(string.format(' %08X', getModuleSize(procAddr))) print(string.format('%016X', getAddress(procAddr) + getModuleSize(procAddr)))
Output:
0000000100000000 002D4000 00000001002D4000