GithubHelp home page GithubHelp logo

spriteovo / sigmatch Goto Github PK

View Code? Open in Web Editor NEW
87.0 4.0 14.0 55 KB

✨ Modern C++ 20 signature match / search library

License: Apache License 2.0

CMake 4.69% C++ 95.31%
signature match search library binary binary-analysis assembler pattern cpp cpp20 cpp20-library cpp20-lib compile-time security reverse-engineering cpp-library header-only

sigmatch's Introduction

logo
sigmatch

Modern C++ 20 Signature Match / Search Library

✨ Features

  • 🍃 Header-only, no dependencies, no exceptions.
  • ☕ Compile-time literal signature string parsing.
  • ❄️ Supports full-byte wildcards (?? or **) and semi-byte wildcards (1? or *B).
  • 🚀 Supports blocking (chunking) and multi-threaded for fast search.
  • 🎯 Supports searching in the current process, external processes and files.
  • 🍄 Customizable reader and target allow you to search on more targets (e.g. network traffic packets).

🌠 Examples

A quick example:

using namespace sigmatch_literals;

sigmatch::this_process_target target;
sigmatch::search_result result = target.in_module("**module_name**").search("1A ?? 3C ** 5* ?F"_sig);
for (const std::byte *address : result.matches()) {
    std::cout << "matched: " << address << '\n';
}

See /examples for more.

🍰 Todo

  • Complete CI for testing and documentation deployment.
  • Host the documentation on GitHub Pages.
  • Statistical tests coverage.
  • Complete benchmarks.
  • Test compilers other than MSVC.
  • Implement class executable_file_target.
  • Port to Linux.

📜 License

sigmatch is licensed under the Apache-2.0 License.

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.