Skip to content

sunnamed434/BitMono

Repository files navigation

BitMono logo
Free open-source obfuscator that targeting Mono and whole .NET

BitMono

MIT License Documentation Status Nuget feed BitMono Discord

BitMono is a free, open-source C# obfuscator that was initially designed and intended mainly for Mono, however, now you're feel free to use it for any .NET app, but, be careful some protections work on .NET Framework, some on .NET, some on Mono, some on Unity Engine only.

BitMono uses AsmResolver instead of dnlib (which we used in the past) for handling assemblies. If you have questions or issues, please let us know here. Download the latest version of BitMono here.

You can also use BitMono as an engine to build custom obfuscators. It is built using dependency injection (DI) using Autofac and follows the latest C# best practices.

Before and after obfuscation preview by BitMono

Before and after obfuscation preview by BitMono 2

CLI

Configuration

Usability

BitMono breaks the most popular tools using just one packer, such as:

  • dnSpy;
  • dnlib;
  • AsmResolver;
  • MonoCecil;
  • ILSpy;
  • PEBear;
  • DetectItEasy;
  • CFF Explorer
  • Perhaps, some dumpers?
  • and many, many more...

So, if you will add more protection to the file, I think it would seem like total magic. :D

Documentation

Read the docs to read protection, functionality, and more.

How your app will look since BitMono obfuscation - just in a few words

  • Looks like C++ application but is an actual C# application;
  • Crash of decompilers when analyzing types;
  • Broken decompilers;
  • Broken IL Code;
  • Invisible types;
  • No code

Features

  • StringsEncryption
  • UnmanagedString (based on existing protection)
  • BitDotNet (based and improved on existing protection)
  • BitMethodDotnet (based and improved on existing protection)
  • DotNetHook (based on existing protection)
  • CallToCalli
  • ObjectReturnType
  • NoNamespaces
  • FullRenamer
  • AntiDebugBreakpoints
  • AntiDecompiler
  • BitDecompiler (fixed version of BitDotNet for newer Unity Versions)
  • BitDateTimeStamp
  • BitMono
  • BillionNops
  • AntiDe4dot
  • AntiILdasm
  • and you can integrate existing/make own feature ;)

Documentation

Read the docs for comprehensive usage instructions, installation guides, and detailed documentation.

Quick Start:

  1. Download from releases
  2. Run BitMono.CLI and follow the prompts
  3. (optional) See the How To Use guide for detailed instructions

Installation Options:

  • GitHub Releases: Download pre-built executables
  • .NET Global Tool: dotnet tool install --global BitMono.GlobalTool
  • NuGet Packages: Integrate into your projects

For detailed installation and usage instructions, see the documentation.

Troubleshooting

Having issues? See the troubleshooting guide in the documentation.

Building

If you want to build BitMono yourself - see the building guide in the documentation.

Supported Frameworks

Feel free to use BitMono on frameworks which described below. Be careful using some protections because some might work on .NET Framework only, some on .NET (Core) only, some on all frameworks, some on Mono only - if the protection is unique to its platform/framework you will get a notification about that.

Framework Version
.NET 9.0
.NET 8.0
.NET 7.0
.NET 6.0
.NET Framework 462
netstandard 2.0
netstandard 2.1

Credits

JetBrains has kindly provided licenses for their JetBrains Rider IDE to the contributors of BitMono. This top-tier tool greatly facilitates and enhances the process of software development.

0x59R11 for his acquaintance in big part of BitDotNet that breaks files for mono executables!

Gazzi for his help that me asked a lot!

Elliesaur for her acquaintance in DotNetHook that hooks methods.

Weka for his advices, help and motivation.

MrakDev for the acquaintance in UnmanagedString.

ConfuserEx and their Forks for most things that I watched for the architecture of BitMono and the obfuscator engine as an application and solving plenty of User solutions which I would be knew in the very long future after much fail usage of BitMono and reports by other Users. Day-by-day I'm looking for something interesting there to improve myself in knowledge and BitMono also.

OpenMod Definitely, openmod inspired this project a lot with services and clean code, extensive similar things to openmod.

Kao and his blogs thanks a lot of these blogs.

drakonia for her costura decompressor.