Skip to content

WowT-sys/BinaryEntropyManipulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Binary Entropy Manipulation Example

Overview

This C++ program demonstrates a technique to manipulate the entropy of a compiled binary by placing large arrays of constant values into the .text and .data sections. It can be used for obfuscation or anti-analysis purposes.


Features

  • Custom Section Allocation: Places predictable data in the .text (code) and .data (initialized data) sections.
  • Entropy Reduction: Dilutes entropy in the binary, making it harder for analysis tools to distinguish between code and data.
  • Compile-Time Initialization: Uses constexpr to embed constant values directly into the binary.

Requirements

  • Compiler: A C++ compiler that supports constexpr and custom section allocation (e.g., MSVC).
  • Platform: Windows.

Usage

  1. Clone the repository:
    git clone https://github.com/WowT-sys/BinaryEntropyManipulation.git
    cd BinaryEntropyManipulation
  2. Compile the program:
    cl /EHsc /W4 entropy.cpp
  3. Run the executable:
    entropy.exe

Disclaimer

This program is for educational purposes only. Use responsibly and ensure compliance with applicable laws and regulations

About

POC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages