Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the base address value? #19

Open
fsegouin opened this issue Apr 16, 2018 · 2 comments
Open

How to get the base address value? #19

fsegouin opened this issue Apr 16, 2018 · 2 comments

Comments

@fsegouin
Copy link

Hi, I had success reading values from a process but I would also like to use pointers and need the base address of the process I'm attached to. Is there a way to get that info?

@hrt
Copy link

hrt commented Mar 6, 2020

For windows:
Write your own list_modules function to returns a dictionary of module name to modBaseAddr https://github.com/n1nj4sec/memorpy/blob/master/memorpy/WinProcess.py#L268

The base address of a process process.exe would be the "process.exe" entry of the returned dictionary

Note that you mmay want to change WinStructures since it's got a wrong definition of MODULEENTRY32

@hrt
Copy link

hrt commented Mar 7, 2020

Check https://github.com/hrt/memorpy for an example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants