- UID
 - 66309
 
 注册时间2010-5-1
阅读权限95
最后登录1970-1-1
超级版主 
     
 
 
 
TA的每日心情  | 开心 2019-3-25 14:18 | 
|---|
 
  签到天数: 881 天 [LV.10]以坛为家III  
 | 
 
 本帖最后由 GeekCat 于 2015-8-21 13:35 编辑  
 
1、软柿子一个 
2、切入方式:1)、工具按键事件;2)、F12暂停法。 
3、支持中文注册名,在这谢谢飘云大大~~ 
4、软件算法分析传送门:https://www.chinapyg.com/thread-80552-1-1.html 
 
注册机源代码: 
 
- 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 East_Imperial_Soft_V2._1
 
 - {
 
 -     public partial class Form1 : Form
 
 -     {
 
 -         public Form1()
 
 -         {
 
 -             InitializeComponent();
 
 -         }
 
 -         private void Form1_Load(object sender, EventArgs e)
 
 -         {
 
 -             cobSoft.DropDownStyle = ComboBoxStyle.DropDownList; //下拉菜单只能选择不能输入
 
 -             cobSoft.SelectedIndex = 0;
 
 -             labCopy.Visible = false;
 
 -         }
 
 -         private void btnKeyGen_Click(object sender, EventArgs e)
 
 -         {
 
 -             if (txtName.Text != "") //用户名不能为空
 
 -             {
 
 -                 //特征码
 
 -                 string strCode = "6C78111B-1BD5-48E9-9F46-257BB8340404";
 
  
-                 //软件版本的选择:1、家庭版;2、办公版;3、商业版
 
 -                 string edition = "";
 
 -                 if (rbHome.Checked)
 
 -                 {
 
 -                     edition = "HOME EDITION";
 
 -                 }
 
 -                 else if (rbOffice.Checked)
 
 -                 {
 
 -                     edition = "OFFICE EDITION";
 
 -                 }
 
 -                 else
 
 -                 {
 
 -                     edition = "COMMERCIAL EDITION";
 
 -                 }
 
 -                 //软件的选择
 
 -                 string softName = "";
 
 -                 switch (cobSoft.SelectedIndex)
 
 -                 {
 
 -                     case 0:
 
 -                         softName = "MAGIC PARTITION RECOVERY";
 
 -                         break;
 
 -                     case 1:
 
 -                         softName = "MAGIC UNERASER";
 
 -                         break;
 
 -                     case 2:
 
 -                         softName = "MAGIC OFFICE RECOVERY";
 
 -                         break;
 
 -                     case 3:
 
 -                         softName = "MAGIC PHOTO RECOVERY";
 
 -                         break;
 
 -                     case 4:
 
 -                         softName = "MAGIC NTFS RECOVERY";
 
 -                         break;
 
 -                     case 5:
 
 -                         softName = "MAGIC FAT RECOVERY";
 
 -                         break;
 
 -                     case 6:
 
 -                         softName = "MAGIC WORD RECOVERY";
 
 -                         break;
 
 -                     default:
 
 -                         softName = "MAGIC EXCEL RECOVERY";
 
 -                         break;
 
 -                 }
 
 -                 int i;
 
 -                 int j = 1;
 
 -                 int num = 0;
 
 -                 int mod = 0;
 
 -                 string key = "";
 
 -                 string line = "";
 
 -                 string UTF8Code = txtName.Text.ToUpper();
 
 -                 string str = UTF8Code + softName + edition + strCode;
 
 -                 string MD5_16Str = getMD5(str).Substring(0, 16);
 
 -                 for (i = 0; i < MD5_16Str.Length; )
 
 -                 {
 
 -                     line = "";
 
 -                     num = Convert.ToInt32(MD5_16Str[i]);
 
 -                     mod = num % 10;
 
 -                     i++;
 
 -                     if (i % 4 == 0 && i < MD5_16Str.Length)
 
 -                     {
 
 -                         line = "-";
 
 -                     }
 
 -                     key = key + mod.ToString() + line;
 
 -                 }
 
 -                 txtKey.Text = key;
 
 -                 if (txtKey.Text != "")
 
 -                 {
 
 -                     Clipboard.SetText(txtKey.Text);
 
 -                     labCopy.Visible = true;
 
 -                     labCopy.Text = "注册码复制成功";
 
 -                 }
 
 -             }
 
 -             else
 
 -             {
 
 -                 MessageBox.Show("注册名不能为空,请输入注册名","错误",MessageBoxButtons.OK,MessageBoxIcon.Error);
 
 -             }
 
 -         }
 
  
-         public string getMD5(string str)
 
 -         {
 
 -             byte[] result = Encoding.UTF8.GetBytes((str.Trim()));   //Fixed By PiaoYun 
 
 -             MD5 md5 = new MD5CryptoServiceProvider();
 
 -             byte[] output = md5.ComputeHash(result);
 
 -             string re = (BitConverter.ToString(output).Replace("-", ""));
 
 -             return re;         //返回结果为大写(密文)
 
 -         }
 
 -         private void btnKeygen_MouseLeave(object sender, EventArgs e)
 
 -         {
 
 -             labCopy.Visible = false;
 
 -         }
 
 -         private void txtName_TextChanged(object sender, EventArgs e)
 
 -         {
 
 -             txtKey.Text = "";
 
 -         }
 
 -         private void txtName_DoubleClick(object sender, EventArgs e)
 
 -         {
 
 -             if (txtName.Text != "")
 
 -             {
 
 -                 Clipboard.SetText(txtName.Text);
 
 -                 labCopy.Text = "注册名复制成功";
 
 -                 labCopy.Visible = true;
 
 -             }
 
 -         }
 
 -         private void txtName_MouseLeave(object sender, EventArgs e)
 
 -         {
 
 -             labCopy.Visible = false;
 
 -         }
 
 -         private void txtKey_DoubleClick_1(object sender, EventArgs e)
 
 -         {
 
 -             if (txtKey.Text != "")
 
 -             {
 
 -                 Clipboard.SetText(txtKey.Text);
 
 -                 labCopy.Text = "注册码复制成功";
 
 -                 labCopy.Visible = true;
 
 -             }
 
 -         }
 
 -         private void linkPYG_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 
 -         {
 
 -             System.Diagnostics.Process.Start("[url=https://www.chinapyg.com]https://www.chinapyg.com[/url]");
 
 -         }
 
 -     }
 
 - }
 
 
  复制代码 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
East Imperial Soft 注册机源代码.rar
(117.58 KB, 下载次数: 39)
 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |