Jump to content
Tuts 4 You

Sean's KeyGenMe


1 Screenshot

Crack and keygen this for training your skills. It is protected with ConfuserEx using some anti tricks.

Write a tutorial and document the methods used in your solution.

My Anti-virus engine detects it's a virus, but it's not.

 


What's New in Version 01/28/2022 11:44 PM   See changelog

Released

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Security.Cryptography;
namespace Sean_s_KeyGenMe_4
{
    public partial class Form1 : Form
    {
     
        public Form1()
        {
            InitializeComponent();
        }
        
        public static string CreateMD5(string input)
        {
            // Use input string to calculate MD5 hash
            using (System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create())
            {
                byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input);
                byte[] hashBytes = md5.ComputeHash(inputBytes);

                // Convert the byte array to hexadecimal string
                StringBuilder sb = new StringBuilder();
                for (int i = 0; i < hashBytes.Length; i++)
                {
                    sb.Append(hashBytes[i].ToString("X2"));
                }
                return sb.ToString();
            }
        }


private bool KeyVerify(string Name)
        {
            string Key = CreateMD5(("Hello World. New Year 2022 - ").ToString() + Name.ToString()).ToString();

            if ( Key== textKey.Text)
            {
               
                 if (int.Parse(textKey.Text.Substring(20, 4), System.Globalization.NumberStyles.HexNumber) % 2 == 1 && checkRight.Checked &&  checkLeft.Checked)
              
                { 
                    
                           button1.Text = "Halfway You Verified it! Try more.";
                }
                else if(int.Parse(textKey.Text.Substring(20, 4), System.Globalization.NumberStyles.HexNumber) % 2 == 1 && checkRight.Checked)
                
                {

                    button1.Text = "Halfway You Verified it! Try more.";
                }
                else  if (int.Parse(textKey.Text.Substring(20,4)  , System.Globalization.NumberStyles.HexNumber ) % 2 == 1 && checkLeft.Checked)
            {
               button1.Enabled = false;
                    button1.Text = "Successfully  Verified !";
                }   
                else if (int.Parse(textKey.Text.Substring(20, 4), System.Globalization.NumberStyles.HexNumber) % 2 == 0 && checkLeft.Checked)
                {
                    button1.Text = "Halfway You Verified it! Try more.";
                }
                else if (int.Parse(textKey.Text.Substring(20, 4), System.Globalization.NumberStyles.HexNumber) % 2 == 0 && checkRight.Checked)
                {
                    button1.Text = "Halfway You Verified it! Try more.";
                }
            }

            
              
            
            return true;

        }
        private void Button1_Click(object sender, EventArgs e)
        {
            KeyVerify(textName.ToString());
        }


    }

}

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Security.Cryptography;
namespace Sean_s_KeyGenMe_4
{
    public partial class Form1 : Form
    {
     
        public Form1()
        {
            InitializeComponent();
        }
        
        public static string CreateMD5(string input)
        {
            // Use input string to calculate MD5 hash
            using (System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create())
            {
                byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input);
                byte[] hashBytes = md5.ComputeHash(inputBytes);

                // Convert the byte array to hexadecimal string
                StringBuilder sb = new StringBuilder();
                for (int i = 0; i < hashBytes.Length; i++)
                {
                    sb.Append(hashBytes[i].ToString("X2"));
                }
                return sb.ToString();
            }
        }


private bool KeyVerify(string Name)
        {
            string Key = CreateMD5(("Hello World. New Year 2022 - ").ToString() + Name.ToString()).ToString();

            if ( Key== textKey.Text)
            {
               
                 if (int.Parse(textKey.Text.Substring(20, 4), System.Globalization.NumberStyles.HexNumber) % 2 == 1 && checkRight.Checked &&  checkLeft.Checked)
              
                { 
                    
                           button1.Text = "Halfway You Verified it! Try more.";
                }
                else if(int.Parse(textKey.Text.Substring(20, 4), System.Globalization.NumberStyles.HexNumber) % 2 == 1 && checkRight.Checked)
                
                {

                    button1.Text = "Halfway You Verified it! Try more.";
                }
                else  if (int.Parse(textKey.Text.Substring(20,4)  , System.Globalization.NumberStyles.HexNumber ) % 2 == 1 && checkLeft.Checked)
            {
               button1.Enabled = false;
                    button1.Text = "Successfully  Verified !";
                }   
                else if (int.Parse(textKey.Text.Substring(20, 4), System.Globalization.NumberStyles.HexNumber) % 2 == 0 && checkLeft.Checked)
                {
                    button1.Text = "Halfway You Verified it! Try more.";
                }
                else if (int.Parse(textKey.Text.Substring(20, 4), System.Globalization.NumberStyles.HexNumber) % 2 == 0 && checkRight.Checked)
                {
                    button1.Enabled = false;
                    button1.Text = "Successfully  Verified !";
                }
            }

            
              
            
            return true;

        }
        private void Button1_Click(object sender, EventArgs e)
        {
            KeyVerify(textName.ToString());
        }


    }

}
 Share


User Feedback

Recommended Comments

There are no comments to display.

×
×
  • Create New...