UnamSanctam / UnamBinder

A Free Silent (Hidden) Open-Source Native Binder - Includes Windows Defender Bypass - Unam Binder
MIT License
237 stars 47 forks source link

how did u make it generate native c stub #51

Open Shade4765 opened 1 year ago

Shade4765 commented 1 year ago

hello im learning c# and was wondering how u made it generate native c stub from c# binder

UnamSanctam commented 1 year ago

I used TCC, I extract the TCC compiler and the C code and then run the compiler from inside the binder.

Shade4765 commented 1 year ago

I used TCC, I extract the TCC compiler and the C code and then run the compiler from inside the binder.

how are u even using c in c#

UnamSanctam commented 1 year ago

I have both the TCC (TinyCC) C compiler and the C code as a resource in the C# forms program, then I extract the compiler into a folder and then the C file somewhere as well. Then the builder runs the TCC compiler here : https://github.com/UnamSanctam/UnamBinder/blob/b79b6f3eb56bd417e089da35393efa4396f31163/UnamBinder/Forms/Builder.cs#L208 which compiles the C file into a program. The C code file is just a text resource within the C# program.