MCPcopy Create free account
hub / github.com/lief-project/LIEF / remove_section_table

Function remove_section_table

api/python/examples/elf_remove_section_table.py:25–32  ·  view source on GitHub ↗
(filename, output)

Source from the content-addressed store, hash-verified

23from lief import ELF
24
25def remove_section_table(filename, output):
26 binary = lief.ELF.parse(filename) # Build an ELF binary
27
28 header = binary.header
29 header.section_header_offset = 0;
30 header.numberof_sections = 0;
31
32 binary.write(output);
33
34def main():
35 if len(sys.argv) != 3:

Callers 1

mainFunction · 0.85

Calls 2

parseMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected