Skip to content

Shinbatsu/signature-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signature Extractor

This is a simple command-line utility for generating signatures (hashes) of binary files. It processes the file in blocks and writes hash results to an output file.

Features

  • Multithreaded hashing with automatic thread count detection.
  • Customizable block size (in bytes).
  • Input/output file validation.
  • Simple interface for CLI usage.

Prerequisites

  • MSVC 2017+
  • Clang 6.5+
  • GCC 8.1+
  • Perl (non-direct dependency)
  • mbedtls/crypto/ (Should be added to compiler's headers path)

Building

You need a C++ compiler that supports C++17 or newer. Make sure to include the following files in your build:

  • main.cpp
  • hashlib.h and its implementation
  • utils.h and its implementation

Install Gtest library via vcpkg

Windows

cmake -G "Visual Studio 16" -DCMAKE_GENERATOR_PLATFORM=x64 ..

Linux/Mac

cd signature && mkdir build && cd build
cmake -G "Ninja" ..
ninja

Usage

Command

./signature_tool <input_file> <output_hash_file> <block_size>

Example

./signature_tool where_to_produce.bin output_signatures.txt 1234567

Important

Memory usage: 64MB - Buffer size limit.

About

CLI utility that extracting signatures via searching by hash from any file(esp. binary)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published