Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Compiling Source Code With CodeDom

I am trying to create a program builder product that compiles source code. What I am wondering is how can I make my builder compile the code without having the user be able to review the source code files, an example being Crypter builders, Miner Builders etc. When you use these kinds of programs they are able to compile the code from the program directly without having to fetch source files etc. How do I do this?
This video should be pretty useful: https://www.youtube.com/watch?v=j-loRgraJNo
Store it in resources or grab it from the server when the user logs in, doesn't matter. Just make sure it's encrypted and has proper obfuscation.
(Mar 23, 2018 11:49 PM)JUSTIN Wrote:  This video should be pretty useful: \
Store it in resources or grab it from the server when the user logs in, doesn't matter. Just make sure it's encrypted and has proper obfuscation.

Thanks for the reply man, I'll have a look and see what I can do  🤝 If anyone can add on to what he said, by all means don't be shy
CSharpCodeProvider.CompileAssemblyFromSource(params string[] sources);

https://msdn.microsoft.com/en-us/library....110).aspx
[Image: Syr3DlV.png]
you will also need to include assembly references to cover the imports in your source if you have any, you can place them in an array and run a foreach through them or create your own class and add a "if contains" to detect from the source what it imports
https://msdn.microsoft.com/en-us/library....110).aspx
"If i had the abilities to neg fuck you now i would - I really do not care what you think. Go away." ~Armada~
(Mar 24, 2018 06:47 PM)NyQuil Wrote:  you will also need to include assembly references to cover the imports in your source if you have any, you can place them ni an array and run a foreach through them or create your own class and add a "if contains" to setect from the source what it imports
https://msdn.microsoft.com/en-us/library....110).aspx

Thank you everyone for the feedback!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by SIM-5170982Jun 24, 2022 09:48 PM 6 381 Jun 24, 2022 09:48 PM
Last Post: BinC0de0101
[C] by ernestmillerOct 14, 2019 10:37 AM 18 483 Oct 14, 2019 10:37 AM
Last Post: ArviX
[.NET] by CacheIsAFagOct 27, 2017 08:12 AM 12 467 Oct 27, 2017 08:12 AM
Last Post: gigajew