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

find int(AddressOfEntryPoint) is greater than get_memory_mapped_image() #366

Open
KatherineLiu-holdon opened this issue Feb 18, 2023 · 1 comment

Comments

@KatherineLiu-holdon
Copy link

Hi, I just start on learning. I wonder why in the showing case , buffer actually gets nothing.

ep = pe.OPTIONAL_HEADER.AddressOfEntryPoint
buffer=pe.get_memory_mapped_image()[ep:ep+100]
print(buffer)

it shows like buffer has nothing

b''

and I find that ep is greater than the length of pe.get_memory_mapped_image()
the AddressOfEntryPoint checked in petools is same as pefile
Am I wrong in something? Being so confused as a green hand.
Thank you for viewing.

@erocarrera
Copy link
Owner

That should work in most cases. Have you tried with more than one PE file? is there a chance that you could share the file?

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