pyelftools: a tool written in Python to analyze ELFs

ELF Linux format (binary)

La pyelftools tool is a utility written using the Python programming language and it is presented as a great resource to be able to analyze binary executables in Linux ELF format. It is true that there are many other similar utilities, but some have certain limitations that you can solve if you use this other one.

For example, it is a universal and highly specialized tool in these formats to be able to explore everything you need from these formats. So if you need to study this kind of Linux binary files, with having Python 3.6 or higher installed on your favorite distro, and the pyelftools package itself (you can easily get it using pip), you will be able to do real wonders ...

But first of all, surely you are wondering what is that of ELF, if you do not know it yet. Well, they are the acronyms of Executable and Linkable Format, a type of binary executable file for Linux, although it can also be used for other types such as shared libraries, memory dumps, etc.

It was originally developed for 32-bit platforms, but today it has been extended to 64-bit platforms as well. What's more, not unique to linux, but it is used in a majority way in the majority of UNIX-like systems, including macOS, * BSD, Solaris, etc. And it has come to replace other somewhat older ones such as a.out, COFF, etc.

NOTE: : although by default gcc continues to generate a binary called a.out if you don't assign a name to it, you should know that it is really an ELF even though it is called like the old binaries ...

That being said, if you want start analyzing these ELFs on your Linux distro, then you can follow the installation steps and read more information from your GitHub page. And put the ELFs under serious scrutiny with pyelftools!


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

Be the first to comment

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.