Digging into ELFs (Part 1)

Digging into ELFs (Part 1) In this blog, I plan to look at the ELF file format, specifically the ELF headers, sections and segments. This is gonna be a part of a series that I hope to complete part-by-part this month. I am planning to use the LIEF python module to help me look at ELFs and understand what’s happening. Overview ELF file contains a header and data. The data is divided into segments, each segment can contian a number of sections....

July 26, 2022 · 7 min · Siddharth Muralee

Digging into ELFs (Part 2)

Digging into ELFs (Part 2) Last time, I spent time looking at the ELF headers. And we got a decent idea of how the ELF file format stores data in various segments and sections. Now let’s look deeper into different sections that are present in the ELF file. What are those various sections? To view the sections using the LIEF python module, we can use the following script: import lief binary = lief....

July 26, 2022 · 2 min · Siddharth Muralee