Currently I can access a module's info via index e.g. current_process.modules[0] but if I want to access by it's module name I am unaware if this is possible. Ideally I would like to access it with the [] operator e.g. current_process.modules["module.dll"]. Not sure if overloading [] to also access names is a bad idea or not in the long term though. Yes, I am aware of the module.dll! shorthand for accessing symbols of a given module but really in this case I want to access the base of the module e.g. current_process.modules["module.dll"].vaddr_range.min.
Currently I can access a module's info via index e.g.
current_process.modules[0]but if I want to access by it's module name I am unaware if this is possible. Ideally I would like to access it with the [] operator e.g.current_process.modules["module.dll"]. Not sure if overloading [] to also access names is a bad idea or not in the long term though. Yes, I am aware of the module.dll! shorthand for accessing symbols of a given module but really in this case I want to access the base of the module e.g.current_process.modules["module.dll"].vaddr_range.min.