Sublime Text注册教程

lijunyi2023-01-30appSublime Text

Sublime Text注册教程

说明

截止 2023-01-30,最新版是 Sublime Text 4 (Build 4143)

Sublime Text 4 Build 4143注册教程

1、首先去官网下载Sublime Text并安装,或者直接点击下载sublime_text_build_4143open in new window

2、使用浏览器打开网站:点击直达open in new window ,点击左上角打开文件,打开Sublime Text安装目录选择文件 sublime_text.exe

3、在右侧搜索框中输入:807805000f94c1 按回车键Enter

sublime

4、右下角打开替换,在替换框中输入c64005014885c9 点击替换即可

sublime

5、点击另存为,保存文件到本地,文件名设定为sublime_text

6、备份原始sublime_text.exe文件(重命名为:sublime_text_bk.exe

7、将修改过的sublime_text.exe复制到原sublime text 4安装目录中即可

按照上方操作后,Sublime Text就激活成功了,打开Sublime Text之后,可以看到Registered的提示。

sublime

更新

sublime text 4180 激活方式:

  • 操作基本类似,不同点就是,原来是搜索807805000f94c1,现在是搜索80 79 05 00 0F 94 C2。有些编辑器可能是四位一组,只需去掉相应空格即可8079 0500 0F94 C2
  • 将文本替换为C6 41 05 01 B2 00 90 四位一组去掉对应空格
  • 保存文件后,使用新的 sublime_text.exe 替换掉之前的 sublime_text.exe 即可

c语言方法

/*
 * crack_sublimetext.c
 * Cracks Sublime Text 4 Build 4180 x64
 *
 * Usage:
 * compile with `gcc crack_sublimetext.c -o crack_sublimetext`
 * run crack_sublimetext.exe
 * it will create a new sublime_text.exe
 * tested on Windows 11
 */

#include <stdio.h>
#include <stdlib.h>

#define INDEX 0x01A4E8
char BYTES[] = {0x80, 0x79, 0x05, 0x00, 0x0F, 0x94, 0xC2};
char REPLACE_BYTES[] = {0xC6, 0x41, 0x05, 0x01, 0xB2, 0x00, 0x90};

int main()
{
    FILE *file = fopen("C:/Program Files/Sublime Text/sublime_text.exe", "rb");
    if (file == NULL)
    {
        printf("Error: File sublime_text.exe not found\n");
        system("timeout 3");
        return 1;
    }
    fseek(file, 0, SEEK_END);
    long file_size = ftell(file);
    fseek(file, 0, SEEK_SET);
    char *buffer = (char *)malloc(file_size);
    fread(buffer, 1, file_size, file);
    fclose(file);

    int LEN = sizeof(BYTES);
    for (int i = 0; i < LEN; i++)
    {
        if (buffer[INDEX + i] != BYTES[i])
        {
            printf("Error: Bytes sequence not found in sublime_text.exe\n");
            system("timeout 3");
            return 1;
        }
    }

    for (int i = 0; i < LEN; i++)
    {
        buffer[INDEX + i] = REPLACE_BYTES[i];
    }

    FILE *new_file = fopen("sublime_text.exe", "wb");
    fwrite(buffer, 1, file_size, new_file);
    fclose(new_file);
    free(buffer);

    printf("Cracked sublime_text.exe successfully\n");
    system("timeout 3");
    return 0;
}
Last Updated 2024/9/27 16:18:47