PHP Code:
private void buildServer(string stub)
{
if (framework == null)
framework = new Dictionary<string, string>();
else
framework.Clear();
framework.Add("CompilerVersion", "v2.0");
CSharpCodeProvider cscp = new CSharpCodeProvider(framework);
ICodeCompiler comp = cscp.CreateCompiler();
CompilerParameters cp = new CompilerParameters();
cp.GenerateExecutable = true;
cp.GenerateInMemory = true;
cp.OutputAssembly = "server.exe";
cp.ReferencedAssemblies.Add("System.dll");
cp.ReferencedAssemblies.Add("System.Windows.Forms.dll");
cp.ReferencedAssemblies.Add("mscorlib.dll");
cp.CompilerOptions = "/target:winexe /platform:x86";
CompilerResults results = comp.CompileAssemblyFromSource(cp, stub);
if (results.Errors.HasErrors)
{
MessageBox.Show("Error detected...");
MessageBox.Show(results.Errors.ToString());
}
else
{
MessageBox.Show("Successful Compiled...");
}
}
PHP Code:
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Text;
namespace Stealer_Bot
{
public class Stub
{
public static void Main()
{
MessageBox.Show("Successful Compiled...");
}
}
}






