Files
crypters-scode/C# (MetroCrypterinf/Source/MetroCrypter/MetroCrypter/Options.cs
T
2026-08-27 11:04:21 -06:00

303 lines
11 KiB
C#

using MetroCrypter.Forms;
using MetroFramework.Components;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Resources;
using System.Windows.Forms;
namespace MetroCrypter
{
public class Options : Form
{
private Startup startup;
private FilePump fp;
private injectiontype ijtype;
private MetroCrypter.Forms.Timer tm;
private const int WM_NCHITTEST = 132;
private const int HT_CLIENT = 1;
private const int HT_CAPTION = 2;
private IContainer components = null;
private Button button1;
private Button ExeLoad;
private Label ils;
private Button button2;
private Button button3;
private Button button5;
private Button button6;
private Button IcoLoad;
private MetroToolTip metroToolTip1;
public Options()
{
this.InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
base.Close();
}
private void button2_Click(object sender, EventArgs e)
{
base.WindowState = FormWindowState.Minimized;
}
private void button2_Click_1(object sender, EventArgs e)
{
this.fp = new FilePump();
this.fp.ShowDialog();
}
private void button3_Click(object sender, EventArgs e)
{
using (OpenFileDialog openFileDialog = new OpenFileDialog())
{
if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
openFileDialog.Filter = "Payload|*.exe";
Form1.CID.filename = openFileDialog.FileName;
this.ExeLoad.Text = string.Concat("\n", openFileDialog.SafeFileName.ToString());
this.ExeLoad.ImageAlign = ContentAlignment.BottomCenter;
}
}
}
private void button3_Click_1(object sender, EventArgs e)
{
this.startup = new Startup();
this.startup.ShowDialog();
}
private void button5_Click(object sender, EventArgs e)
{
using (OpenFileDialog openFileDialog = new OpenFileDialog())
{
openFileDialog.Filter = "Icon|*.ico";
if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
Form1.CID.iconame = openFileDialog.FileName;
this.IcoLoad.Text = string.Concat("\n", openFileDialog.SafeFileName.ToString());
this.IcoLoad.ImageAlign = ContentAlignment.BottomCenter;
}
}
}
private void button5_Click_1(object sender, EventArgs e)
{
this.ijtype = new injectiontype();
this.ijtype.ShowDialog();
}
private void button6_Click(object sender, EventArgs e)
{
this.tm = new MetroCrypter.Forms.Timer();
this.tm.ShowDialog();
}
private void delaylabel_Click(object sender, EventArgs e)
{
}
protected override void Dispose(bool disposing)
{
if ((!disposing ? false : this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Options));
this.button1 = new Button();
this.ExeLoad = new Button();
this.ils = new Label();
this.button2 = new Button();
this.button3 = new Button();
this.button5 = new Button();
this.button6 = new Button();
this.IcoLoad = new Button();
this.metroToolTip1 = new MetroToolTip();
base.SuspendLayout();
this.button1.BackColor = Color.Transparent;
this.button1.BackgroundImage = (Image)componentResourceManager.GetObject("button1.BackgroundImage");
this.button1.BackgroundImageLayout = ImageLayout.Center;
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatAppearance.MouseOverBackColor = Color.DimGray;
this.button1.FlatStyle = FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("Source Code Pro Light", 8.999999f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.button1.Location = new Point(306, 0);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(29, 31);
this.button1.TabIndex = 28;
this.button1.TabStop = false;
this.button1.TextAlign = ContentAlignment.BottomCenter;
this.button1.TextImageRelation = TextImageRelation.ImageAboveText;
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new EventHandler(this.button1_Click);
this.ExeLoad.BackColor = Color.FromArgb(64, 71, 77);
this.ExeLoad.FlatAppearance.BorderSize = 0;
this.ExeLoad.FlatStyle = FlatStyle.Flat;
this.ExeLoad.Font = new System.Drawing.Font("Arial", 6.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.ExeLoad.Image = (Image)componentResourceManager.GetObject("ExeLoad.Image");
this.ExeLoad.Location = new Point(12, 39);
this.ExeLoad.Name = "ExeLoad";
this.ExeLoad.Size = new System.Drawing.Size(153, 126);
this.ExeLoad.TabIndex = 33;
this.ExeLoad.TextImageRelation = TextImageRelation.ImageAboveText;
this.metroToolTip1.SetToolTip(this.ExeLoad, "Load Stub");
this.ExeLoad.UseVisualStyleBackColor = false;
this.ExeLoad.Click += new EventHandler(this.button3_Click);
this.ils.AutoSize = true;
this.ils.BackColor = Color.FromArgb(85, 94, 102);
this.ils.Font = new System.Drawing.Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
this.ils.ForeColor = Color.White;
this.ils.Location = new Point(219, 157);
this.ils.Name = "ils";
this.ils.Size = new System.Drawing.Size(0, 16);
this.ils.TabIndex = 49;
this.button2.AllowDrop = true;
this.button2.BackColor = Color.FromArgb(64, 71, 77);
this.button2.BackgroundImageLayout = ImageLayout.None;
this.button2.FlatAppearance.BorderSize = 0;
this.button2.FlatStyle = FlatStyle.Flat;
this.button2.Font = new System.Drawing.Font("Arial", 6.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.button2.Image = (Image)componentResourceManager.GetObject("button2.Image");
this.button2.Location = new Point(171, 171);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(153, 126);
this.button2.TabIndex = 50;
this.button2.TextImageRelation = TextImageRelation.ImageAboveText;
this.metroToolTip1.SetToolTip(this.button2, "File Pumper");
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new EventHandler(this.button2_Click_1);
this.button3.AllowDrop = true;
this.button3.BackColor = Color.FromArgb(85, 94, 102);
this.button3.BackgroundImageLayout = ImageLayout.None;
this.button3.FlatAppearance.BorderSize = 0;
this.button3.FlatAppearance.MouseOverBackColor = Color.FromArgb(64, 71, 77);
this.button3.FlatStyle = FlatStyle.Flat;
this.button3.Font = new System.Drawing.Font("Arial", 6.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.button3.Image = (Image)componentResourceManager.GetObject("button3.Image");
this.button3.Location = new Point(12, 171);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(153, 126);
this.button3.TabIndex = 51;
this.button3.TextImageRelation = TextImageRelation.ImageAboveText;
this.metroToolTip1.SetToolTip(this.button3, "Startup");
this.button3.UseVisualStyleBackColor = false;
this.button3.Click += new EventHandler(this.button3_Click_1);
this.button5.AllowDrop = true;
this.button5.BackColor = Color.FromArgb(64, 71, 77);
this.button5.BackgroundImageLayout = ImageLayout.None;
this.button5.FlatAppearance.BorderSize = 0;
this.button5.FlatStyle = FlatStyle.Flat;
this.button5.Font = new System.Drawing.Font("Arial", 6.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.button5.Image = (Image)componentResourceManager.GetObject("button5.Image");
this.button5.Location = new Point(12, 303);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(153, 126);
this.button5.TabIndex = 52;
this.button5.TextImageRelation = TextImageRelation.ImageAboveText;
this.metroToolTip1.SetToolTip(this.button5, "Injection Type");
this.button5.UseVisualStyleBackColor = false;
this.button5.Click += new EventHandler(this.button5_Click_1);
this.button6.AllowDrop = true;
this.button6.BackColor = Color.FromArgb(85, 94, 102);
this.button6.BackgroundImageLayout = ImageLayout.None;
this.button6.FlatAppearance.BorderSize = 0;
this.button6.FlatAppearance.MouseOverBackColor = Color.FromArgb(64, 71, 77);
this.button6.FlatStyle = FlatStyle.Flat;
this.button6.Font = new System.Drawing.Font("Arial", 6.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.button6.Image = (Image)componentResourceManager.GetObject("button6.Image");
this.button6.Location = new Point(171, 303);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(153, 126);
this.button6.TabIndex = 53;
this.button6.TextImageRelation = TextImageRelation.ImageAboveText;
this.metroToolTip1.SetToolTip(this.button6, "Timer");
this.button6.UseVisualStyleBackColor = false;
this.button6.Click += new EventHandler(this.button6_Click);
this.IcoLoad.AllowDrop = true;
this.IcoLoad.BackColor = Color.FromArgb(85, 94, 102);
this.IcoLoad.BackgroundImageLayout = ImageLayout.None;
this.IcoLoad.FlatAppearance.BorderSize = 0;
this.IcoLoad.FlatAppearance.MouseOverBackColor = Color.FromArgb(64, 71, 77);
this.IcoLoad.FlatStyle = FlatStyle.Flat;
this.IcoLoad.Font = new System.Drawing.Font("Arial", 6.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.IcoLoad.Image = (Image)componentResourceManager.GetObject("IcoLoad.Image");
this.IcoLoad.Location = new Point(171, 39);
this.IcoLoad.Name = "IcoLoad";
this.IcoLoad.Size = new System.Drawing.Size(153, 126);
this.IcoLoad.TabIndex = 36;
this.IcoLoad.TextImageRelation = TextImageRelation.ImageAboveText;
this.metroToolTip1.SetToolTip(this.IcoLoad, "Load .ico");
this.IcoLoad.UseVisualStyleBackColor = false;
this.IcoLoad.Click += new EventHandler(this.button5_Click);
this.metroToolTip1.set_Style(4);
this.metroToolTip1.set_StyleManager(null);
this.metroToolTip1.set_Theme(1);
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = Color.FromArgb(33, 35, 38);
base.ClientSize = new System.Drawing.Size(336, 441);
base.Controls.Add(this.button6);
base.Controls.Add(this.button5);
base.Controls.Add(this.button3);
base.Controls.Add(this.button2);
base.Controls.Add(this.ils);
base.Controls.Add(this.ExeLoad);
base.Controls.Add(this.button1);
base.Controls.Add(this.IcoLoad);
this.ForeColor = Color.Transparent;
base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
base.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(336, 441);
this.MinimumSize = new System.Drawing.Size(336, 441);
base.Name = "Options";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
base.StartPosition = FormStartPosition.CenterScreen;
this.Text = "Options";
base.Load += new EventHandler(this.Options_Load);
base.ResumeLayout(false);
base.PerformLayout();
}
private void Options_Load(object sender, EventArgs e)
{
this.ExeLoad.Text = string.Concat("\n", Form1.CID.filename);
this.ExeLoad.ImageAlign = ContentAlignment.BottomCenter;
this.IcoLoad.Text = string.Concat("\n", Form1.CID.iconame);
this.IcoLoad.ImageAlign = ContentAlignment.BottomCenter;
}
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (m.Msg == 132)
{
m.Result = (IntPtr)2;
}
}
}
}