Giter Club home page Giter Club logo

initramfs-toolkit's Introduction

initramfs-toolkit

Description

initrafms-toolkit is a toolkit that allows to extract and compress initramfs cpio, useful for Linux kernel exploitation.

Here is the list of the available compression systems:

  • gzip
  • bzip2
  • lz4
  • lzma
  • lzop
  • xz
  • zstd

You can also use the tool to compress/extract cpio without any compression system.

Usage

extract-initramfs

The usage for this tool is very basic, here is the help page:

env@Ruulian:~$ ./extract-initramfs -h
Usage: ./extract-initramfs initrd/initramfs [-o output_directory] [-f]

Options:
  -o : Specify the output directory (default: 'initrd-root')
  -f : Force creation of output directory (overwrite if already exists)
  -h : Print this help message

Note: This tool allows by default to extract cpios concatenated in one archive

compress-initramfs

env@Ruulian:~$ ./compress-initramfs -h
Usage: ./compress-initramfs compression_type input_directory [-o output_filename]

Compression type:
You can choose among the following types: [ lzma lz4 xz cpio zstd gzip bzip2 lzop ]

Input directory:
Choose the directory fs to archive

Options:
  -o : Specify output file name
  -h : Print this help message

Setup

To use this toolkit, the following packages are needed:

cpio gzip bzip2 xz-utils zstd lz4 lzop

Contribution

Pull requests are welcome. Feel free to open an issue if you encounter any problem or want to add any feature.

initramfs-toolkit's People

Contributors

ruulian avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

gavz

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.