source code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using Crackme_Level1.Properties;
namespace Crackme_Level1
{
// Token: 0x02000002 RID: 2
public class Form1 : Form
{
// Token: 0x06000001 RID: 1
public Form1()
{
this.InitializeComponent();
}
// Token: 0x06000002 RID: 2
private void btnCheckKey_Click(object sender, EventArgs e)
{
string text = this.txtKeyInput.Text;
if (this.predefinedKeys.Contains(text))
{
MessageBox.Show("Crack success!", "[*]", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
Form1.StartCmdWithMessage("Hello World! Congratulations on successfully Cracking!");
return;
}
MessageBox.Show("Key wrong!", "[*]", MessageBoxButtons.OK, MessageBoxIcon.Hand);
this.txtKeyInput.Clear();
}
// Token: 0x06000003 RID: 3
private static void StartCmdWithMessage(string message)
{
ProcessStartInfo startInfo = new ProcessStartInfo
{
FileName = "cmd.exe",
Arguments = "/C echo " + message + " && pause",
CreateNoWindow = false,
UseShellExecute = false
};
new Process
{
StartInfo = startInfo
}.Start();
}
// Token: 0x06000004 RID: 4
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
// Token: 0x06000005 RID: 5
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000006 RID: 6
private void InitializeComponent()
{
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Form1));
this.btnCheckKey = new Button();
this.btnExit = new Button();
this.pictureBox1 = new PictureBox();
this.label1 = new Label();
this.label2 = new Label();
this.txtKeyInput = new TextBox();
((ISupportInitialize)this.pictureBox1).BeginInit();
base.SuspendLayout();
this.btnCheckKey.BackColor = Color.Black;
this.btnCheckKey.ForeColor = Color.White;
this.btnCheckKey.Location = new Point(12, 114);
this.btnCheckKey.Name = "btnCheckKey";
this.btnCheckKey.Size = new Size(75, 23);
this.btnCheckKey.TabIndex = 1;
this.btnCheckKey.Text = "Login";
this.btnCheckKey.UseVisualStyleBackColor = false;
this.btnCheckKey.Click += this.btnCheckKey_Click;
this.btnExit.BackColor = Color.Black;
this.btnExit.ForeColor = Color.White;
this.btnExit.Location = new Point(165, 114);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new Size(75, 23);
this.btnExit.TabIndex = 2;
this.btnExit.Text = "Exit";
this.btnExit.UseVisualStyleBackColor = false;
this.btnExit.Click += this.btnExit_Click;
this.pictureBox1.Image = Resources.www_0x01;
this.pictureBox1.Location = new Point(12, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new Size(228, 82);
this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop = false;
this.label1.AutoSize = true;
this.label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
this.label1.ForeColor = Color.White;
this.label1.Location = new Point(9, 91);
this.label1.Name = "label1";
this.label1.Size = new Size(78, 13);
this.label1.TabIndex = 4;
this.label1.Text = "Your key is: ";
this.label2.AutoSize = true;
this.label2.ForeColor = Color.White;
this.label2.Location = new Point(-2, 152);
this.label2.Name = "label2";
this.label2.Size = new Size(117, 13);
this.label2.TabIndex = 5;
this.label2.Text = "Created by @mihawk_re";
this.txtKeyInput.Location = new Point(91, 89);
this.txtKeyInput.Name = "txtKeyInput";
this.txtKeyInput.Size = new Size(147, 20);
this.txtKeyInput.TabIndex = 6;
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
base.AutoSizeMode = AutoSizeMode.GrowAndShrink;
this.BackColor = Color.Black;
base.ClientSize = new Size(252, 165);
base.Controls.Add(this.txtKeyInput);
base.Controls.Add(this.label2);
base.Controls.Add(this.label1);
base.Controls.Add(this.pictureBox1);
base.Controls.Add(this.btnExit);
base.Controls.Add(this.btnCheckKey);
base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "Form1";
base.StartPosition = FormStartPosition.CenterScreen;
this.Text = "Crackme 1.0";
((ISupportInitialize)this.pictureBox1).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x04000001 RID: 1
private List predefinedKeys = new List
{
"A1B2C3D4E5F6",
"G7H8I9J0K1L2",
"M3N4O5P6Q7R8",
"S9T0U1V2W3X4",
"Y5Z6A7B8C9D0",
"E1F2G3H4I5J6",
"K7L8M9N0O1P2",
"Q3R4S5T6U7V8",
"W9X0Y1Z2A3B4",
"C5D6E7F8G9H0"
};
// Token: 0x04000002 RID: 2
private IContainer components;
// Token: 0x04000003 RID: 3
private Button btnCheckKey;
// Token: 0x04000004 RID: 4
private Button btnExit;
// Token: 0x04000005 RID: 5
private PictureBox pictureBox1;
// Token: 0x04000006 RID: 6
private Label label1;
// Token: 0x04000007 RID: 7
private Label label2;
// Token: 0x04000008 RID: 8
private TextBox txtKeyInput;
}
}
|
==> |