Modules - Rob--/memoryjs GitHub Wiki

Details

Module Object

When retrieving a module, an object is returned with details about it.

{ modBaseAddr: 468123648,
  modBaseSize: 80302080,
  szExePath: 'c:\\program files (x86)\\steam\\steamapps\\common\\counter-strike global offensive\\csgo\\bin\\client.dll',
  szModule: 'client.dll',
  th32ProcessID: 10316 }

Functions

findModule(moduleName, processId[, callback])

  • moduleName - the name of the module to find
  • processId - the ID of the process in which to find the module
  • callback - has two parameters:
    • error - error message (if one occurred)
    • moduleObject - object containing information about the module

returns (if no callback provided): object containing information about the module

Finds a given module associated with a process.

// synchronously
const moduleObject = memoryjs.findModule(moduleName, processId);

// asynchronously
memoryjs.findModule(moduleName, processId, (error, moduleObject) => {

});

getModules(processId[, callback])

  • processId - the ID of the process to find the modules of
  • callback - has two parameters:
    • error - error message (if one occurred)
    • moduleObject - array of module objects found within the given process

returns (if no callback provided): array of module objects found within the given process

Finds all the modules within a given process.

// synchronously
const modules = memoryjs.getModules(processId);

// asynchronously
memoryjs.getModules(processId, (error, modules) => {

});