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

AttributeError: module 'capstone' has no attribute 'CS_ARCH_ARM64' #797

Closed
FloocX opened this issue Dec 7, 2024 · 3 comments
Closed

AttributeError: module 'capstone' has no attribute 'CS_ARCH_ARM64' #797

FloocX opened this issue Dec 7, 2024 · 3 comments
Assignees

Comments

@FloocX
Copy link

FloocX commented Dec 7, 2024

My ubuntu is 20.06. While pwngdb is installed, there is such wrong.
No pwngdb installed, it can works.
binwalk is the latest version

Traceback (most recent call last):
  File "/usr/bin/binwalk", line 26, in <module>
    import binwalk.modules
  File "/usr/lib/python3/dist-packages/binwalk/modules/__init__.py", line 3, in <module>
    from binwalk.modules.disasm import Disasm
  File "/usr/lib/python3/dist-packages/binwalk/modules/disasm.py", line 21, in <module>
    class Disasm(Module):
  File "/usr/lib/python3/dist-packages/binwalk/modules/disasm.py", line 60, in Disasm
    Architecture(type=capstone.CS_ARCH_ARM64,
AttributeError: module 'capstone' has no attribute 'CS_ARCH_ARM64'
@devttys0 devttys0 self-assigned this Dec 7, 2024
@devttys0
Copy link
Collaborator

devttys0 commented Dec 7, 2024

The latest release of Binwalk has been re-written in Rust, and no longer uses the capstone library.

For identifying CPU architectures, I'd highly recommend cpu_rec.

@devttys0 devttys0 closed this as completed Dec 7, 2024
@FloocX
Copy link
Author

FloocX commented Dec 7, 2024

The latest release of Binwalk has been re-written in Rust, and no longer uses the capstone library.

For identifying CPU architectures, I'd highly recommend cpu_rec.

but from the cpu_rec,i it looks like this tool has been added to the dependencies?

@devttys0
Copy link
Collaborator

devttys0 commented Dec 9, 2024

it looks like this tool has been added to the dependencies?

Not sure which tool (Binwalk? cpu_rec?) you mean here, so I'll try to cover all the bases:

  1. Binwalk no longer uses the capstone library
  2. Binwalk does not depend on cpu_rec
  3. cpu_rec does not depend on Binwalk
  4. I could be wrong, but I don't believe that cpu_rec depends on the capstone library

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