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

Add docs for Xenial binutils, and attempt to auto-detect Debian packages #718

Merged
merged 1 commit into from
Sep 2, 2016
Merged

Add docs for Xenial binutils, and attempt to auto-detect Debian packages #718

merged 1 commit into from
Sep 2, 2016

Conversation

zachriggle
Copy link
Member

An error message will be printed like this when a package is found:

>>> context.arch='powerpc'
>>> pwnlib.asm.print_binutils_instructions('objdump', context)
[ERROR] Could not find 'objdump' installed for ContextType(arch = 'powerpc', bits = 32, endian = 'big')
    Try installing binutils for this architecture:
    $ sudo apt-get install binutils-powerpc-linux-gnu

Fixes #716

An error message will be printed like this when a package is found:

>>> context.arch='powerpc'
>>> pwnlib.asm.print_binutils_instructions('objdump', context)
[ERROR] Could not find 'objdump' installed for ContextType(arch = 'powerpc', bits = 32, endian = 'big')
    Try installing binutils for this architecture:
    $ sudo apt-get install binutils-powerpc-linux-gnu
@zachriggle zachriggle added the docs label Sep 2, 2016
@zachriggle
Copy link
Member Author

Not sure of a good way to do tests for this (-0.1% coverage), since we need to ensure it (1) always fails and (2) is a real architecture that could exist. Travis doesn't let us add a PPA, and 12.04 doesn't have these packages.

@zachriggle
Copy link
Member Author

Passes CI, merging to dev.

@zachriggle zachriggle merged commit 8f06c1f into Gallopsled:dev Sep 2, 2016
@TethysSvensson TethysSvensson added this to the 3.2.0 milestone Nov 12, 2016
@zachriggle zachriggle deleted the xenial-docs branch January 4, 2017 18:04
Kyle-Kyle pushed a commit to Kyle-Kyle/pwntools that referenced this pull request Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants