Coder Social home page Coder Social logo

zaczero / sharploader Goto Github PK

View Code? Open in Web Editor NEW
40.0 6.0 9.0 7.05 MB

๐Ÿ”ฎ [C#] Source code randomizer and compiler

License: GNU General Public License v3.0

C# 100.00%
source-code randomization signature tool compiler randomizer swap project trash seed

sharploader's Introduction

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

sharploader's People

Contributors

zaczero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sharploader's Issues

Add support for preprocessor directives

Hey man,

I already feel like trouble-ing you too much damn xD
But I get errors now when I compile ->
F:\MyUser\Program Files\TrashV2\iq3a35d3.1.cs(1,5985) : error CS1040: Preprocessor directives must appear as the first non-whitespace character on a line F:\MyUser\Program Files\TrashV2\iq3a35d3.1.cs(1,7304) : error CS1513: } expected
And they continue down the same issues, like 5/6 more of those, I've did research in internet, but it's really not compiling error in the code, since I'm able to compile it on VS 2017

Cheers!

WindowsBase.dll MetaData Cannot be found

-=: SharpLoader v2.2
-=: Created by Zaczero
-=: Seed : 1612974352

-=: Reading...
-=: Randomizing...
-=: Compiling...
-=: Compilation error
error CS0006: Metadata file 'WindowsBase.dll' could not be found

Cannot implicitly convert type 'MetroFramework.MetroColorStyle' to 'string' !

-=: SharpLoader v2.2
-=: Created by Zaczero
-=: Seed : 1541204200

-=: Reading...
-=: Randomizing...
-=: Compiling...
-=: Compilation error
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(63,23) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroColorStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(66,23) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(75,23) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(84,26) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(93,26) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(102,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(109,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(116,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(124,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(132,29) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(149,26) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(157,25) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(164,16) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(191,26) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(202,22) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(212,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(221,25) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(228,25) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(235,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(242,25) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(249,25) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(258,23) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(269,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(279,25) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(287,22) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(297,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(304,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(311,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(319,26) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(330,27) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(340,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(348,25) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(353,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroColorStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(354,24) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(362,12) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroColorStyle' to 'string'
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(364,16) : error CS0266: Cannot implicitly convert type 'System.Windows.Forms.VisualStyles.HorizontalAlign' to 'System.Windows.Forms.HorizontalAlignment'. An explicit conversion exists (are you missing a cast?)
C:\Users\MEME\AppData\Local\Temp\53znxdwk.15.cs(365,12) : error CS0029: Cannot implicitly convert type 'MetroFramework.MetroThemeStyle' to 'string'

It works on VS2017 but if i try and compile on your compiler it fails, I tried checking reference paths.
Deleting all the Sharp loader comments.
Seeing where the error appears but its just Winforms designer :/, No errors there.

Source file not found (Execute.cs)

I tried copying Yami hack from the sharploader release on mpgh. I generated the settings file and also copied the references/sources. Yet when i run it i get.

Source file not found (Execute.cs)

I cannot convert Visual studio project to SharpLoader!

Hello ive been trying to convert my cheat Fallen from Visual studio to sharp loader but no matter what i always get compile errors :/

My file is here ~ https://github.com/jellythedoge/Fallen

Its Fallen sharp could you please take a look and tell me what im doing wrong ;(
I just want it to compile first before randomizing code.


EDIT i noticed i somehow had 2 swap tags i dont remember adding it got rid of every error but 2, Wish it would tell me what file it is thats causing erros :/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.