Coder Social home page Coder Social logo

forensics_lab2's Introduction

ELF structure LAB

Myprogram Introduction

This is a simple command-line tool that provides information about an ELF file. It is designed to display information about file header, program header tables, and sections header tables.

Myprogram Usage

  • -h: Display file header information.
  • -p: Display program header table information.
  • -s: Display sections header table information.

repo_parcours Introduction

The purpose of this program is to traverse a directory. For each found file, the following information should be displayed:

  • Inode number
  • Type (Regular: DT_REG or Directory: DT_DIR)
  • Whether it is an ELF file or not (in the case of a regular file)
  • The name of the file

repo_parcours algorithm


**repo_parcours Algorithm:**

1. If the program is called with the name of a directory, it should list the contents of that directory. Otherwise, it should list the contents of the current directory (".").
   
2. The `open` system call is be used with the `O_RDONLY | O_DIRECTORY` mode to open the directory.

3. The open modes are defined in the `fcntl.h` header file.

4. As long as `getdents64` does not return a negative value (<=0), the following is performed on the returned entries

5. For each entry, its characteristics (inode, type, and name) are  displayed.

6. If an entry corresponds to a regular file, it is opened, and its header is read to check if it's an ELF file or not.

7. If it's an ELF file, it is displayed whether it's ELF32 or ELF64. It is also indicated if the current version is EV_CURRENT or not.

forensics_lab2's People

Contributors

mathieudelbos avatar mariano1schloss 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.