![]() |
|
[C#] Compiling Source Code With CodeDom - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Compiling Source Code With CodeDom (/showthread.php?tid=5815410) |
Compiling Source Code With CodeDom - Wubix - Mar 23, 2018 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? RE: Compiling Source Code With CodeDom - JUSTIN - Mar 23, 2018 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. RE: Compiling Source Code With CodeDom - Wubix - Mar 24, 2018 (Mar 23, 2018 11:49 PM)JUSTIN Wrote: This video should be pretty useful: \ 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 RE: Compiling Source Code With CodeDom - gigajew - Mar 24, 2018 CSharpCodeProvider.CompileAssemblyFromSource(params string[] sources); https://msdn.microsoft.com/en-us/library/system.codedom.compiler.codedomprovider.compileassemblyfromsource(v=vs.110).aspx RE: Compiling Source Code With CodeDom - NyQuil - Mar 24, 2018 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/system.codedom.compiler.compilerparameters.referencedassemblies(v=vs.110).aspx RE: Compiling Source Code With CodeDom - Wubix - Mar 24, 2018 (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 Thank you everyone for the feedback! |