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

Semantic errors fix on python3/python3.11 #176

Open
Bl4ck-C4t opened this issue Oct 29, 2023 · 0 comments
Open

Semantic errors fix on python3/python3.11 #176

Bl4ck-C4t opened this issue Oct 29, 2023 · 0 comments

Comments

@Bl4ck-C4t
Copy link

Bl4ck-C4t commented Oct 29, 2023

When using the 'semantic' feature with python3 and 3.11 there are several library issues that I had on Linux.

 File "/usr/local/lib/python3.11/dist-packages/ropper-1.13.8-py3.11.egg/ropper/semantic.py", line 67, in analyse
    irsb = pyvex.IRSB(bytes(gadget.bytes), gadget.address+thumb, gadget.arch.info, bytes_offset=thumb, num_bytes=len(gadget.bytes), opt_level=0)
           ^^^^^
NameError: name 'pyvex' is not defined

this one shows up even when you have installed pyvex. I solved it by moving the import pyvex out of the try except block in ropper/semantic.py

    solver = z3.Solver()
             ^^^^^^^^^
AttributeError: module 'z3' has no attribute 'Solver'

this showed even after install z3py as the README says and running python3 -m pip install z3
To solve it you need the z3-solver package: python3 -m pip install z3-solver

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

1 participant