Code Monkey home page Code Monkey logo

mpsd's Introduction

Multi-Pattern Streams Detector

Overview

Multi-Pattern Streams Detector is a file scanning and extraction command-line tool designed to detect and extract various stream types (formats) within a binary file. Uses the Aho-Corasick algorithm for efficient multi-pattern searching and processes files using memory-mapped I/O for performance.

Usage

Multi-Pattern Streams Detector

Usage: mpsd [OPTIONS] <COMMAND>

Commands:
  scan     Scan the input file
  extract  Extract streams from the input file
  inject   Inject streams back to the input file from the given folder (supports large files on 32-bit systems)
  help     Print this message or the help of the given subcommand(s)

Options:
      --wav <DETECT_WAV>
          Enable WAV (RIFF WAVE PCM) detection [default: 1]
      --ogg <DETECT_OGG>
          Enable OGG detection [default: 1]
      --bmp <DETECT_BMP>
          Enable BMP (Windows BitMaP) detection [default: 1]
      --aac <DETECT_AAC>
          Enable AAC (ADTS) detection [default: 1]
      --mp3 <DETECT_MP3>
          Enable MP3 (MPEG-1/2 Audio) detection [default: 1]
      --mpeg-min-frames <MPEG_MIN_FRAMES>
          Minimum MPEG frames (0 = disabled) [default: 20]
      --mpeg-max-frames <MPEG_MAX_FRAMES>
          Maximum MPEG frames (0 = disabled) [default: 10000]
      --erase-sectors
          Replace the found sectors in the input file with zeros
          WARNING: backup the input file to prevent data loss
          Could be enabled only in "Extract" mode
      --rm
          Remove files after injection (only when injection was succeed)
          It won't delete a direction where files were located
  -s, --silent
          Do not print a log for each found/injected stream
  -h, --help
          Print help

Large file support

Large files (> 4 GB) are supported only on 64-bit platforms (scan & extract modes) because of using memory-mapped I/O, which require addressing more memory space than 32-bit systems can provide. Injector automatically uses I/O if memory-map is not supported.

Copyright and License

Copyright (c) 2024 Yurii Zhyvaha

This library is MIT licensed. See the LICENSE.md for details.

mpsd's People

Contributors

phyxolog avatar

Stargazers

Ihor Katkov 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.