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

pydasm module does not have MASK_* attributes #2

Closed
Moirai7 opened this issue Jul 22, 2020 · 2 comments
Closed

pydasm module does not have MASK_* attributes #2

Moirai7 opened this issue Jul 22, 2020 · 2 comments

Comments

@Moirai7
Copy link

Moirai7 commented Jul 22, 2020

I tried to install prerequisites followed by the Readme file and test the randomization function.

python orp.py -r test\md5\md5.dll

It shows the pydasm module does not have the attribute 'MASK_MODRM_MOD'. I found out the MASK_MODRM_MOD is in the libdasm.h file as macro definitions. Those definitions are not compiled as a python module. I wonder how you compile the pydasm to use those macro definitions.

Thank you so much!

@kevinkoo001
Copy link
Owner

Hi, orp.py is an independent tool. Are you trying to experiment orp or ropf?
Anyways, ropf also makes use of the pydasm module. Have you tried to compile/install "https://github.com/jtpereyda/libdasm"? You may have to install pydasm. If there is an undefined symbol, I think it is probably because of the version mismatch.

@Moirai7
Copy link
Author

Moirai7 commented Jul 24, 2020

Thank you for the prompt reply!
I have installed pydasm, so it can be imported in the insn.py. The module includes attributes/functions defined in pydasm.c. But macro definitions in the libdasm.h are not included. I think pydasm might be updated so those definitions are removed. I solved the issue by redefined all macros.
Thanks again! This is an interesting project.

@Moirai7 Moirai7 closed this as completed Jul 24, 2020
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