Coder Social home page Coder Social logo

nobuelf's Introduction

Nobu-ELF

Imagen

Español

ELF parser que permite mostrar las secciones y filtrar por sus permisos o nombre

Hace uso de elf.h para manipular el archivo ELF

Uso

git clone https://github.com/ic4rta/Nobu-ELF.git
gcc nobu-elf.c -o nobu-elf

Uso: ./nobu-elf --file=<ELF> [--permissions=<permisos>] [--name=<nombre_sección>, <nombre_seccion>]


Puedes combinar multiples permisos en el argumento --permissions, los permisos validos son:

  • r: lectura
  • w: escritura
  • x: ejecucion

Esta opcion hace match exactamente con las secciones que tengan el permisos especificado, por lo que si pones --permissions=x te mostrara solo las secciones con permisos de ejecucion, mas no te mostrara las secciones que tengan permisos de ejecucion y otro permiso (la parte de ejemplos se explica mejor)

Tambien puedes filtrar por el nombre de una seccion usando --name, pudes especificar mas de una seccion separandolas por una coma

Ejemplos

  • Permisos de lectura: nobu-elf --file=/ruta/elf --permissions=r
  • Permisos escritura: nobu-elf --file=/ruta/elf --permissions=w
  • Permisos de lectura y escritura: nobu-elf --file=/ruta/elf --permissions=rw
  • Permisos de lectura y ejecucion: nobu-elf --file=/ruta/elf --permissions=rx
  • Filtrar por la seccion .text: nobu-elf --file=/ruta/elf --name=.text
  • Filtrar por la seccion .plt: nobu-elf --file=/ruta/elf --name=.plt
  • Filtrar por la seccion .text e .init: nobu-elf --file=/ruta/elf --name=.text,.init

English

ELF parser that allows you to display sections and filter by permissions or name.

Makes use of elf.h to manipulate the ELF file

Usage

git clone https://github.com/ic4rta/Nobu-ELF.git
gcc nobu-elf.c -o nobu-elf

Usage: ./nobu-elf --file=<ELF> [--permissions=<permissions>] [--name=<section_name>, <section_name>]


You can combine multiple permissions in the --permissions argument, the valid permissions are:

  • r: read
  • w: write
  • x: execute

This option matches exactly the sections that have the specified permissions, so if you put ---permissions=x it will show you only the sections with execute permissions, but it will not show you the sections that have execute permissions and another permission (the examples part is better explained).

You can also filter by the name of a section using --name, you can specify more than one section by separating them by a comma.

Examples

  • Read permissions: nobu-elf --file=/path/elf --permissions=r.
  • Write permissions: nobu-elf --file=/path/elf --permissions=w
  • Read and write permissions: nobu-elf --file=/path/elf --permissions=rw
  • Read and execute permissions: nobu-elf --file=/path/elf --permissions=rx
  • Filter by .text section: nobu-elf --file=/path/elf --name=.text
  • Filter by .plt section: nobu-elf --file=/path/elf --name=.plt
  • Filter by .text and .init section: nobu-elf --file=/path/elf --name=.text,.init

nobuelf's People

Contributors

ic4rta avatar

Stargazers

 avatar

Watchers

 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.