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

Capstone 6.0: NameError: name 'CS_ARCH_ARM64' is not defined. #202

Open
peace-maker opened this issue Oct 22, 2024 · 1 comment
Open

Capstone 6.0: NameError: name 'CS_ARCH_ARM64' is not defined. #202

peace-maker opened this issue Oct 22, 2024 · 1 comment

Comments

@peace-maker
Copy link

The latest capstone alpha renamed ARM64 constants to AARCH64. This breaks running ropgadget on arm64 binaries.

Traceback (most recent call last):
  File "/tmp/venv/bin/ROPgadget", line 12, in <module>
    ropgadget.main()
  File "/tmp/venv/lib/python3.10/site-packages/ropgadget/__init__.py", line 30, in main
    sys.exit(0 if Core(args.getArgs()).analyze() else 1)
  File "/tmp/venv/lib/python3.10/site-packages/ropgadget/core.py", line 244, in analyze
    self.__binary = Binary(self.__options)
  File "/tmp/venv/lib/python3.10/site-packages/ropgadget/binary.py", line 40, in __init__
    self.__binary = ELF(self.__rawBinary)
  File "/tmp/venv/lib/python3.10/site-packages/ropgadget/loaders/elf.py", line 229, in __init__
    self.__setHeaderElf()
  File "/tmp/venv/lib/python3.10/site-packages/ropgadget/loaders/elf.py", line 255, in __setHeaderElf
    self.getArch()  # Check if architecture is supported
  File "/tmp/venv/lib/python3.10/site-packages/ropgadget/loaders/elf.py", line 337, in getArch
    return CS_ARCH_ARM64
NameError: name 'CS_ARCH_ARM64' is not defined. Did you mean: 'CS_ARCH_ARM'?
@SweetVishnya
Copy link
Collaborator

@peace-maker, could you, please, ping me when it becomes a stable release?

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