新手,第一次接触.NET程序。好不容易才反编译出来。爆破也不会,注册机更加不会弄了。呵呵。看了两天,也找了些.NET资料来看,还是看不懂。。特此发上来求助一下如何才可以做到爆破或者弄注册机。先谢谢各位。
这个是关于里面的那个代码。
private void frmRegister_Load(object sender, EventArgs e)
{
this.Text = "程序注册";
this.vmethod_6().TabIndex = 0;
this.vmethod_4().Text = Conversions.ToString(Class1.smethod_0().Registry.GetValue(@"HKEY_CURRENT_USER\Software\NanfangSoft .net\Bagua213", "Name", Environment.UserName));
switch (Class15.bool_31)
{
case false:
this.string_0 = Conversions.ToString(Class1.smethod_0().Registry.GetValue(@"HKEY_CURRENT_USER\Software\NanfangSoft .net\Bagua213", "PCNB", ""));
if (this.string_0 != Class14.string_0)
{
Class1.smethod_0().Registry.SetValue(@"HKEY_CURRENT_USER\Software\NanfangSoft .net\Bagua213", "PCNB", Class14.string_0);
}
this.vmethod_0().Text = Class14.string_0;
this.vmethod_6().TabIndex = 0;
this.short_0 = 0;
break;
case true:
this.vmethod_2().Text = "您已经注册了本程序。谢谢!";
this.short_0 = 1;
this.vmethod_8().TabIndex = 0;
break;
}
this.vmethod_0().ReadOnly = true;
}
这个是注册界面的代码。。
private void method_0(object sender, EventArgs e)
{
if (Class15.bool_31)
{
this.Close();
}
else if (Strings.Len(Class14.string_0) == 0)
{
Interaction.MsgBox("机器码不能为空,如不能解决,请与官方联系。", MsgBoxStyle.ApplicationModal, null);
}
else
{
Conversions.ToString(Class1.smethod_0().Registry.GetValue(@"HKEY_CURRENT_USER\Software\NanfangSoft .net\Bagua213", "PCNB", ""));
if (Strings.Trim(this.vmethod_4().Text) == Conversions.ToString((int) (Conversions.ToInteger(Strings.Left(Class14.string_0, 4)) ^ 0x14096f)))
{
this.vmethod_2().Text = "关闭程序,通过'控制面板/添加删除程序'卸载程序,并重新安装,然后再重新注册。";
try
{
if (Class1.smethod_0().FileSystem.FileExists(Class17.string_8 + @"\sysliuy213.dll"))
{
Class1.smethod_0().FileSystem.DeleteFile(Class17.string_8 + @"\sysliuy213.dll");
}
Class1.smethod_0().Registry.CurrentUser.OpenSubKey(@"Software\NanfangSoft .net\Bagua213", true).DeleteValue("BaguaSoft213");
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
ProjectData.ClearProjectError();
}
}
else
{
int num;
int num2;
string str = Strings.Trim(this.vmethod_0().Text);
string str7 = Strings.Trim(this.vmethod_6().Text);
string expression = Strings.Mid(str7, 1, 4) + Strings.Mid(str7, 9, 4);
string str8 = Strings.Mid(str7, 5, 1);
string str6 = Strings.Mid(str7, 7, 1);
if (((str8 == "6") | (str8 == "7")) | (str8 == "B"))
{
str8 = "1";
}
if (((str8 == "8") | (str8 == "9")) | (str8 == "C"))
{
str8 = "2";
}
string str4 = "20" + str8 + Strings.Mid(str7, 6, 1);
if (((str6 == "6") | (str6 == "7")) | (str6 == "B"))
{
str6 = "1";
}
if (((str6 == "4") | (str6 == "5")) | (str6 == "A"))
{
str6 = "0";
}
string str5 = str6 + Strings.Mid(str7, 8, 1);
if ((str7.Length == 13) & (Strings.Mid(str7, 13, 1) == "1"))
{
try
{
if (Class1.smethod_0().FileSystem.FileExists(Class17.string_8 + @"\sysliuy213.dll"))
{
Class1.smethod_0().FileSystem.DeleteFile(Class17.string_8 + @"\sysliuy213.dll");
}
Class1.smethod_0().Registry.CurrentUser.OpenSubKey(@"Software\NanfangSoft .net\Bagua213", true).DeleteValue("BaguaSoft213");
}
catch (Exception exception2)
{
ProjectData.SetProjectError(exception2);
ProjectData.ClearProjectError();
}
}
try
{
num = Conversions.ToInteger(str4);
num2 = Conversions.ToInteger(str5);
}
catch (Exception exception3)
{
ProjectData.SetProjectError(exception3);
this.vmethod_2().Text = "注册码不对!";
ProjectData.ClearProjectError();
return;
}
if ((((((num < 0x7dd) | (num > 0x7ee)) | (num2 < 1)) | (num2 > 12)) | (num < DateAndTime.Now.Year)) | ((num == DateAndTime.Now.Year) & (num2 < DateAndTime.Now.Month)))
{
this.vmethod_2().Text = "注册码不对!";
}
else if (this.short_0 == 1)
{
this.method_1(this.vmethod_8(), new EventArgs());
}
else if (Strings.Len(Strings.Trim(this.vmethod_4().Text)) == 0)
{
this.vmethod_2().Text = "您没有输入姓名。";
}
else if (Strings.Len(expression) == 0)
{
this.vmethod_2().Text = "您没有输入注册码。";
}
else if (Class15.smethod_15(ref str, ref expression) & !File.Exists(Class17.string_8 + @"\sysliuy213.dll"))
{
Class1.smethod_0().Registry.SetValue(@"HKEY_CURRENT_USER\Software\NanfangSoft .net\Bagua213", "Name", this.vmethod_4().Text);
Class17.smethod_11(ref str, ref Strings.UCase(expression), ref str4, ref str5);
Class17.bool_0 = true;
this.vmethod_2().Text = "注册成功!点击'退出',您现在可以使用本程序了。";
}
else
{
this.vmethod_2().Text = "注册码不对!";
}
}
}
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课