吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1219|回复: 6
收起左侧

[求助] 脱完壳了想写注册机没有头绪也找到机器码和注册码位置

[复制链接]
ruxin 发表于 2024-8-6 19:39
111.png
1722944168534.jpg
222.png
里面有两份一份脱完了一分没脱完想请教一下如何编写注册机
https://wwk.lanzout.com/iRfVN26qg1uh

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

Benx1 发表于 2024-8-7 11:07

不知道能不能用
[C#] 纯文本查看 复制代码
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
public partial class Form1 : Form {
    static char?[] Charcode = new char?[25];
    static int[] intNumber = new int[25];
    static int[] intCode = new int[256];
 
    static void SetIntCode() {
        // 按照 C# 代码中的逻辑初始化 intCode 数组
        for (int i = 1; i <= intCode.Length / 10; i++) {
            for (int j = 0; j < 10; j++) {
                intCode[(i - 1) * 10 + j] = j;
            }
        }
    }
 
    static public string GetCode(string code) {
        if (!string.IsNullOrEmpty(code)) {
            SetIntCode();
            for (int i = 1; i < Charcode.Length; i++) {
                if (i - 1 < code.Length) {
                    Charcode[i] = code[i - 1];
                }
            }
 
            for (int j = 1; j < intNumber.Length; j++) {
                if (j < Charcode.Length && Charcode[j].HasValue) {
                    intNumber[j] = intCode[(int)Charcode[j].Value] + (int)Charcode[j].Value;
                }
            }
 
            string text = "";
            for (int k = 1; k < intNumber.Length; k++) {
                if ((48 <= intNumber[k] && intNumber[k] <= 57) ||
                    (65 <= intNumber[k] && intNumber[k] <= 90) ||
                    (97 <= intNumber[k] && intNumber[k] <= 122)) {
                    text += (char)intNumber[k];
                }
                else if (intNumber[k] > 122) {
                    int value = intNumber[k] - 10;
                    if (0 <= value && value <= 0x10FFFF) {
                        text += (char)value;
                    }
                }
                else {
                    int value = intNumber[k] - 9;
                    if (0 <= value && value <= 0x10FFFF) {
                        text += (char)value;
                    }
                }
            }
 
            return text;
        }
        else {
            return "";
        }
    }
    public Form1() {
        InitializeComponent();
    }
 
    private static string GetMd5(string input) {
        using (MD5 md5 = MD5.Create()) {
            byte[] inputBytes = Encoding.ASCII.GetBytes(input);
            byte[] hashBytes = md5.ComputeHash(inputBytes);
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < hashBytes.Length; i++) {
                sb.Append(hashBytes[i].ToString("X2"));
            }
            return sb.ToString();
        }
    }
 
    public static string GenerateActivationCode(string currentCode) {
        DateTime now = DateTime.Now;
        DateTime futureDate = now.AddYears(1);
 
        long nowBinary = now.ToBinary();
        long futureBinary = futureDate.ToBinary();
 
        string part3 = "extra_part_3";
        string part4 = "extra_part_4";
        string part5 = "extra_part_5";
        string part6 = "extra_part_6";
        string part7 = "extra_part_7";
 
        string activationCode = $"{currentCode}[{nowBinary}[{futureBinary}[{part3}[{part4}[{part5}[{part6}[{part7}";
 
        return activationCode;
    }
 
    private void button1_Click(object sender, EventArgs e) {
        var tmp_string = GetCode(""); // 这里是申请码
        textBox2.Text = GenerateActivationCode(tmp_string );
    }
}
3yu3 发表于 2024-8-7 09:19
本帖最后由 3yu3 于 2024-8-7 09:20 编辑

运行不起来中,能发个完整的安装包吗?

注册过程:机器码经过GetCode()计算后变成激活码的一部分,最终的激活码 跟FindClass.RegistIt()进去 分析吧。


SnowRen 发表于 2024-8-7 09:45
本帖最后由 SnowRen 于 2024-8-7 10:39 编辑

文件包不完整,另外需要管理员才能注册成功,因为Registry.LocalMachine.OpenSubKey
注册码以[分隔为8段(0-7):GetCode(申请码)[有效期[随意日期[随意字符[随意字符[随意字符[随意字符[随意字符

QQ图片20240807100528.png
byh3025 发表于 2024-8-7 10:21
把注册类型改为true,
 楼主| ruxin 发表于 2024-8-7 21:51
Benx1 发表于 2024-8-7 11:07
不知道能不能用
[mw_shl_code=csharp,true]public partial class Form1 : Form {
    static char?[] C ...

可以激活但是里面功能并不能使用
安卿 发表于 2024-9-1 02:04
离线的机器码咋破解
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-2-13 18:55

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表