8000 Fail gracefully on platforms where there is no Unicorn framework by xambroz · Pull Request #2568 · Gallopsled/pwntools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fail gracefully on platforms where there is no Unicorn framewor 8000 k #2568

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

xambroz
Copy link
Contributor
@xambroz xambroz commented Mar 28, 2025

For example on s390 platform (bigendian) the Unicorn engine is not available yet, so import unicorn would currently always fail an break the execution.

For example on s390 platform (bigendian) the Unicorn engine is not available yet, so import unicorn would currently always fail an break the execution.
@peace-maker
Copy link
Member

Thank you! Could you add an entry to the changelog too please?

@Arusekk
Copy link
Member
Arusekk commented Apr 2, 2025

Can you provide the exact error message and pwntools version (pwn version), and unicorn version you are using? We seem to already catch all exceptions related to PLT emulation in an upper layer:

pwntools/pwnlib/elf/elf.py

Lines 352 to 355 in e5cd224

try:
self._populate_plt()
except Exception as e:
log.warn("Could not populate PLT: %s", e)

So I am surprised to learn that the error needs additional handling.

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

Successfully merging this pull request may close these issues.

3 participants
0