Less sugar (entropy) for your binaries
SugarFree is an open-source tool designed to analyze and reduce the entropy of a provided PE file.
SugarFree uses two different techniques (strategies) to reduce the entropy of a PE file:
zero
: Appends null bytes (0x00
) to the end of the file, increasing its size while lowering entropy.word
: Appends random English words in byte format to the end of the file, increasing its size while lowering entropy.
The following list explains the meaning of each SugarFree command:
info
: Calculates the entropy of a PE file and its sections.free
: Lowers the overall entropy of a PE file.
SugarFree is written in Golang, a cross-platform language, enabling its use on both Windows and Linux systems.
If you find any bugs, don’t hesitate to report them. Your feedback is valuable in improving the quality of this project!
The authors and contributors of this project are not liable for any illegal use of the tool. It is intended for educational purposes only. Users are responsible for ensuring lawful usage.
This project created with ❤️ by @nickvourd && @IAMCOMPROMISED.
Special thanks to my friend Marios Gyftos for inspiring the concept of automated stages.
You can use the precompiled binaries, or you can manually install SugarFree by following the next steps:
- Clone the repository by executing the following command:
git clone https://github.com/nickvourd/SugarFree.git
- Once the repository is cloned, navigate into the SugarFree directory:
cd SugarFree
- Install the third-party dependencies:
go mod download
- Build SugarFree with the following command:
go build SugarFree
ℹ️ Please refer to the SugarFree Wiki for detailed usage instructions and examples of commands.
███████╗██╗ ██╗ ██████╗ █████╗ ██████╗ ███████╗██████╗ ███████╗███████╗
██╔════╝██║ ██║██╔════╝ ██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝
███████╗██║ ██║██║ ███╗███████║██████╔╝█████╗ ██████╔╝█████╗ █████╗
╚════██║██║ ██║██║ ██║██╔══██║██╔══██╗██╔══╝ ██╔══██╗██╔══╝ ██╔══╝
███████║╚██████╔╝╚██████╔╝██║ ██║██║ ██║██║ ██║ ██║███████╗███████╗
╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝
SugarFree v2.0 - Less sugar (entropy) for your binaries.
SugarFree is an open source tool licensed under MIT.
Written with <3 by @nickvourd && @IAMCOMPROMISED...
Please visit https://github.com/nickvourd/SugarFree for more...
Usage:
SugarFree [flags]
SugarFree [command]
Aliases:
SugarFree, sugarfree, SUGARFREE, sf
Available Commands:
free Free command
help Help about any command
info Info command
Flags:
-h, --help help for SugarFree
-v, --version Show SugarFree current version