★ wanayoo — archive 1999 https://github.com/Zaczero/SharpLoaderNouvelle recherche | Portail wanayoo
Skip to content
šŸ”® [C#] Source code randomizer and compiler
Branch: master
Clone or download
Zaczero
Latest commit 63b8b2d Jun 28, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SharpLoader Added support for preprocessor directives #5 Jun 28, 2017
.gitignore Initial commit Mar 23, 2017
LICENSE Create LICENSE Mar 27, 2017
README.md Update README.md Jun 5, 2017

README.md

User guide

What is SharpLoader?

SharpLoader is a program that opens source code files (c#), randomizes them and compiles to an .exe assembly.
This process reults a random file signature every time.

How to compile a SharpLoader project?

If everything is set up properly all you have to do is run SharpLoader.exe, select project .zip and click compile.

What is seed?

Seed is a unique randomization output.
Value is random by default but it's possible to set it manually.

How to set custom seed value?

Use -seed argument. SharpLoader.exe -seed 123

How to run SharpLoader in cmd?

Use -cmd argument. SharpLoader.exe -cmd

Developer guide

How to prepare source code files?

Currently there are available 8 randomization features (that are listed below).
Simply add proper tags to your source code.

//-<swap>
int a = 0;
int b = 0;
int c = 0;
//-<swap/>

TIP: You can use <tag> or //-<tag> if you prefer comments

Features:

1. Swap

//-<swap>
int a = 0;
int b = 0;
int c = 0;
//-<swap/>
//-<swap>
if (a == 0)
{ }
//-<block>
if (b == 0)
{ }
//-<swap/>

2. Trash

Adds from 1 to 6 lines of trash.

int a = 0;
//-<trash>
int b = 0;

2.1. Trash +1 argument

Adds from 1 to X lines of trash.

int a = 0;
//-<trash 5>
int b = 0;

2.2. Trash +2 arguments

Adds from X to Y lines of trash.

int a = 0;
//-<trash 4 12>
int b = 0;

3. Flow

Generates random code flow.

//-<flow>
int a = 0;
int b = 0;
int c = 0;
//-<flow/>
//-<flow>
if (a == 0)
{ }
//-<block>
if (b == 0)
{ }
//-<flow/>

4. Seed

Gets replaced with compilation seed value.

int seed = <seed>;

5. Random

Generates random int value.

int a = <rnd>;

5.1. Random +1 argument

Generates random int value from 0 to X.

int a = <rnd 25>;

5.2. Random +2 arguments

Generates random int value from X to Y.

int a = <rnd 100 200>;

6. Random String

Generates random string with 8-16 length.

string a = <rnds>;

6.1. Random String +1 argument

Generates random string with 1-X length.

string a = <rnds 25>;

6.2. Random String +2 arguments

Generates random string with X-Y length.

string a = <rnds 100 200>;

7. Encrypt

Encrpypts value.

int a = <enc 58>;
char a = <enc 'C'>;
string a = <enc "Hello World">;

8. Proxy

Generates proxy functions.

//-<proxy>
int a = 0;
int b = 0;
int c = 0;
//-<proxy/>
//-<proxy>
if (a == 0)
{ }
//-<block>
if (b == 0)
{ }
//-<proxy/>

8.1. Proxy +1 argument

Generates proxy functions inside X namespace.

//-<proxy MyNamepsace>
int a = 0;
int b = 0;
int c = 0;
//-<proxy/>
//-<proxy MyNamepsace>
if (a == 0)
{ }
//-<block>
if (b == 0)
{ }
//-<proxy/>

8.2. Proxy +1 argument

Generates proxy variables for X argument.

int a = <proxy 58>;
char a = <proxy 'C'>;
string a = <proxy "Hello World">;

How to configure SharpLoader?

All SharpLoader's configuration is stored in SharpLoader.ini file.
You can generate this file by running SharpLoader in cmd mode.

References

All references that your application use (dlls).
Separated by ';' character.
References=System.dll;System.Windows.Forms.dll

Directory

Main project directory.
Directory=MySources

TIP: Alternatively you can drag'n'drop source files/directories

Output

Compiled assembly name.
Output=MyApplication

Arguments

Compiler arguments (unsafe, prefer 32-bit etc.).
Arguments=/platform:anycpu32bitpreferred

AutoRun

Should assembly be run after successful compilation.
AutoRun=true

You can’t perform that action at this time.