East Imperial Soft 注册机+源代码
本帖最后由 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);
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("https://www.chinapyg.com");
}
}
}
沙发。。。前排学习!
GGLHY 发表于 2015-8-21 10:09
沙发。。。前排学习!
G大要指导小菜~~
刚起步~
感谢分享,这个系列的软件确实软柿子,不过有的效果很不错的 zz100179 发表于 2015-8-21 10:47
感谢分享,这个系列的软件确实软柿子,不过有的效果很不错的
刚开始学写注册机
水平只能玩软柿子
膜拜算法大神 赞一个了,感谢分享 原来这家也被你端了啊。嘿嘿 又一位算法小王子重现江湖~! 高人,再接再励。