Giter VIP home page Giter VIP logo

section-header-stripper's Introduction

section-stripper.py is a utility to remove the section header from an ELF file, along with its string table. It also clears the fields in the ELF header related to the section header.

The standard unix utility strip doesn't do this, so this is why I created this file.

NOTE: this program assumes the section header's string table is roughly-contiguous with the section header itself. That is, they are both at the end of the file and only separated by a few (less than eight) bytes. If you get the error Section header and its string table are not roughly contiguous please open an issue with your file attached. I don't even think this happens in the wild so I didn't write the code to account for this.

Usage:

./section-stripper.py my-program #strip file in-place
./section-stripper.py my-program my-program-stripped #output stripped file elsewhere (must be chmod'd to be executable)
cat my-program | ./section-stripper > my-program-stripped #do everything with pipes

section-header-stripper's People

Contributors

blackle avatar

Watchers

José Luis Di Biase avatar James Cloos avatar Facundo Mainere avatar Leo Orellana avatar Charlie avatar Neto Licursi avatar Benji Salinas avatar Damian Mantuano avatar Pablo Ivanic avatar  avatar Santiago Botta avatar Leonardo Vaquel avatar Flor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.