520pojie 发表于 2024-1-29 14:27

一个NET程序

本帖最后由 520pojie 于 2024-1-29 14:28 编辑

try
            {
                if (!PublicMethods.PingIP())
                {
                }
                string text = object_0.ToString();
                string nowTime = GetTimeInfo.GetNowTime();
                string hardwareInfoMD = HardwareRecognition.GetHardwareInfoMD5();
                if (!VerifyCDKey.SoftVerify_CDKey(text, PublicVariable.soft_set.store_id))
                {
                }
                if (PublicVariable.soft_set.is_in_depth != 2)
                {
                  string text2 = DESEncrypt.Decrypt(RegeditHelp.ReadRegistry("BKSoft", "soft_info"));
                  string text3 = (text2.Length > 0) ? JsonConvert.DeserializeObject<s_soft_info>(text2).SysFirstTime : nowTime;
                  string encryptStr = string.Concat(new string[]
                  {
                        "{'CDKey':'",
                        text,
                        "','SysFirstTime':'",
                        text3,
                        "','SysActTime':'",
                        nowTime,
                        "','HardwareInfoMD5':'",
                        hardwareInfoMD,
                        "','IsBuy':'true'}"
                  });
                  RegeditHelp.WriteRegistry("BKSoft", "soft_info", DESEncrypt.Encrypt(encryptStr));
                  RegeditHelp.WriteRegistry("SoftNum", "nums", "1");
                  this.btnSysAct.Text = "已激活";
                  base.Close();
                  MessageBox.Show("已成功激活永久正版!请重启收银软件!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
                }
                else
                {
                  string text4 = DESEncrypt.Decrypt(RegeditHelp.ReadRegistry("FFSoft", "soft_info"));
                  string text5 = (text4.Length > 0) ? JsonConvert.DeserializeObject<s_soft_info>(text4).SysFirstTime : nowTime;
                  string encryptStr2 = string.Concat(new string[]
                  {
                        "{'CDKey':'",
                        text,
                        "','SysFirstTime':'",
                        text5,
                        "','SysActTime':'",
                        nowTime,
                        "','HardwareInfoMD5':'",
                        hardwareInfoMD,
                        "','IsBuy':'true'}"
                  });
                  RegeditHelp.WriteRegistry("FFSoft", "soft_info", DESEncrypt.Encrypt(encryptStr2));
                  RegeditHelp.WriteRegistry("SoftNumFF", "nums", "1");
                  this.btnSysAct.Text = "已激活";
                  base.Close();
                  MessageBox.Show("已成功激活永久正版!请重启收银软件!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
                }
            }
            catch (Exception exception_)
            {
                Log.SaveErrorLog(exception_);
            }
      }

让程序一直往下走到激活要重启验证跳不过   大神帮看看到 软件和脱壳修改后文件下载地址:https://wwd.lanzoul.com/b0avc66kb
密码:79rj

0×Ret 发表于 2024-1-29 14:27


变量初始化:
string text = A_0.ToString();
string nowTime = GetTimeInfo.GetNowTime();
string text2 = HardwareRecognition.smethod_3();
CD密钥验证:

if (VerifyCDKey.SoftVerify_CDKey(text, PublicVariable.soft_set.store_id))
检查CD密钥(text)是否未通过VerifyCDKey类的SoftVerify_CDKey方法进行验证。

激活逻辑:

PublicVariable.soft_set.is_in_depth的值,继续执行BKSoft或FFSoft的激活逻辑。
RegeditHelp类读取和写入注册表值SoftVerifyDB类与数据库交互 写入激活信息



0×Ret 发表于 2024-1-29 15:34

注册成功不就对了。admin 123456


0×Ret 发表于 2024-1-29 15:38

写注册机 算码 也简单。要重启一下 就 是正式版永久的啦。随便输入key

520pojie 发表于 2024-1-29 16:39

对net的不太了解只是胡乱改了一通   大佬能具体说一下改哪里吗

WYF605466 发表于 2024-1-29 16:46



用你脱壳的exe,只需再一步在启动的时候直接改成进入正版系统登陆界面即可

520pojie 发表于 2024-1-29 17:03

{:5_118:}找不到他要启动的那一项。

WYF605466 发表于 2024-1-29 17:06

520pojie 发表于 2024-1-29 17:03
找不到他要启动的那一项。





520pojie 发表于 2024-1-29 17:53

我的代怎么不一样的大神

WYF605466 发表于 2024-1-29 17:59

520pojie 发表于 2024-1-29 17:53
我的代怎么不一样的大神
一样的, 你的显示的是C#,我显示的是vb,


记得给个最佳哦{:5_119:}
页: [1] 2
查看完整版本: 一个NET程序