Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JerryLokjianming/71dac05f27f8c96ad1c8941b88030451 to your computer and use it in GitHub Desktop.
Save JerryLokjianming/71dac05f27f8c96ad1c8941b88030451 to your computer and use it in GitHub Desktop.
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
  7. Export File and save it to location you want
  8. Backup sublime_text.exe file (just rename)
  9. Copy sublime_text.exe modified to directory Sublime Text 3
  10. Happy Coding :)
Screenshot

Screenshot


How to Crack Sublime Text 4 Alpha 4098 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 4 Alpha 4094
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Go to Address: 0000A700 change 80 38 00 to FE 00 90
  5. Export File and save it to location you want
  6. Backup sublime_text.exe file (just rename)
  7. Copy sublime_text.exe modified to directory Sublime Text 4 (i.e C:\Program Files\Sublime Text)
  8. Use this License
----- BEGIN LICENSE ----- 
TwitterInc 
200 User License 
EA7E-890007 
1D77F72E 390CDD93 4DCBA022 FAF60790 
61AA12C0 A37081C5 D0316412 4584D136 
94D7F7D4 95BC8C1C 527DA828 560BB037 
D1EDDD8C AE7B379F 50C9D69D B35179EF 
2FE898C4 8E4277A8 555CE714 E1FB0E43 
D5D52613 C3D12E98 BC49967F 7652EED2 
9D2D2E61 67610860 6D338B72 5CF95C69 
E36B85CC 84991F19 7575D828 470A92AB 
------ END LICENSE ------
  1. Happy Coding :)
Screenshot

Screenshot


Blocked by Microsoft Defender SmartScreen -> More Info -> Run Anyway

Screenshot

Screenshot

Screenshot


How to Crack Sublime Text 3 & 4 Alpha 4094 with Hex Editor (Linux & MacOS | With License) ↓

  1. Download & Install Sublime Text 3 or 4
  2. Visit https://hexed.it/
  3. Open file select sublime_text
    • Linux Location: /opt/sublime_text/sublime_text
    • MacOS Location: /Application/Sublime Text [version].app (Correct Me If I'm Wrong)
  4. Search 97 94 0D and Change to 00 00 00
  5. Export File and save it to location you want
  6. Backup sublime_text file (just rename)
  7. Copy sublime_text modified to default directory Sublime Text
  8. Use this License
----- BEGIN LICENSE ----- 
TwitterInc 
200 User License 
EA7E-890007 
1D77F72E 390CDD93 4DCBA022 FAF60790 
61AA12C0 A37081C5 D0316412 4584D136 
94D7F7D4 95BC8C1C 527DA828 560BB037 
D1EDDD8C AE7B379F 50C9D69D B35179EF 
2FE898C4 8E4277A8 555CE714 E1FB0E43 
D5D52613 C3D12E98 BC49967F 7652EED2 
9D2D2E61 67610860 6D338B72 5CF95C69 
E36B85CC 84991F19 7575D828 470A92AB 
------ END LICENSE ------
  1. Happy Coding :)
Screenshot

Screenshot


@Fadi002
Copy link

Fadi002 commented Feb 22, 2025

heres an updated version i made it and test it on the latest version
https://gist.github.com/Fadi002/b65cbbffb5eef7554a3c6856603ca4bb

@Destitute-Streetdwelling-Guttersnipe
Copy link

@Fadi002
Copy link

Fadi002 commented Feb 22, 2025

@Fadi002 you only changed some text in the About dialog, dear 0xmrpepe This is not an effective patch.

I fixed the problem i will update the new code tomorrow

@Fadi002
Copy link

Fadi002 commented Feb 22, 2025

@Fadi002 you only changed some text in the About dialog, dear 0xmrpepe This is not an effective patch.

fixed the code now i removed the free popup message completely and tested it on windows 10

@Destitute-Streetdwelling-Guttersnipe
Copy link

@luizfernandonb
Copy link

Does anyone know how to crack Sublime Text 3 Build 3176?

@OneNiNE87
Copy link

For Windows, Sublime Text Build 4192 Tested

Find
[80 79 05 00 0f 94 c2]
replace with
[c6 41 05 01 b2 00 90]

@strotee
Copy link

strotee commented Mar 19, 2025

@chbacher
Copy link

Any chance to have the modifications for Linux Build 4192 20 Jan 2025?

@DaviRamosAndrade
Copy link

Works on Ubuntu
sudo perl -pi -e 's/\x80\x79\x05\x00\x0F\x94\xC2/\xC6\x41\x05\x01\xB2\x00\x90/' /opt/sublime_text/sublime_text

@SkyrocketStan
Copy link

Works on Ubuntu sudo perl -pi -e 's/\x80\x79\x05\x00\x0F\x94\xC2/\xC6\x41\x05\x01\xB2\x00\x90/' /opt/sublime_text/sublime_text

You're the Man!! thanks!

@HassanMirza01
Copy link

4192 hex (Windows x64/leogx9r's method): 48 8B 96 B0 02 00 00 48 8D 0D 4A 06 00 00 41 B8 88 13 00 00 E8 21 DC 1A 00 48 8B 96 B0 02 00 00 48 8D 0D BB 07 00 00 41 B8 98 3A 00 00 E8 08 DC 1A 00 -> 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 (Invalidation/Validation Functions) 28 5F 5E C3 41 57 41 56 41 54 56 57 53 48 81 EC E8 -> 28 5F 5E C3 C3 57 41 56 41 54 56 57 53 48 81 EC E8 (License Notify Thread, same as 4186) 20 C8 C3 41 57 41 56 -> 20 C8 C3 48 31 C0 C3 (License Validity Checking, same as 4186) 5F C3 56 57 53 48 83 EC 20 89 D6 -> 5F C3 48 31 C0 48 FF C0 C3 89 D6 (Server Validation Thread, same as 4186)

There was no crash reporter code found in this version. After patch just enter anything to license and it should work.

Also available here

can do it for linux versions?

@strotee
Copy link

strotee commented May 20, 2025

@Jonathan703
Copy link

Anyone can provide the hex-edit the latest version (version 4200)?

@Hazuki-san
Copy link

Hazuki-san commented May 22, 2025

4200 hex (Windows x64/leogx9r's method):
48 8B 96 B0 02 00 00 48 8D 0D 94 06 00 00 41 B8 88 13 00 00 E8 B9 84 18 00 48 8B 96 B0 02 00 00 48 8D 0D 08 08 00 00 41 B8 98 3A 00 00 E8 A0 84 18 00 -> 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 (Invalidation/Validation Functions)
28 5F 5E C3 41 57 41 56 41 54 56 57 53 48 81 EC E8 -> 28 5F 5E C3 C3 57 41 56 41 54 56 57 53 48 81 EC E8 (License Notify Thread, same as 4192)
C8 C3 31 C0 C3 41 57 41 56 -> C8 C3 31 C0 C3 48 31 C0 C3 (License Validity Checking)
5F C3 56 57 53 48 83 EC 20 89 D6 -> 5F C3 48 31 C0 48 FF C0 C3 89 D6 (Server Validation Thread, same as 4192)

There was no crash reporter code found in this version.
After patch just enter anything to license and it should work.

Also available here

@Pengyu-Jin
Copy link

@Hazuki-san bro, you're the real hero. Thanks for sharing.

@Vitalicus
Copy link

4200, Ubuntu
sudo perl -pi -e 's/\x0F\xB6\x51\x05\x83\xF2\x01/\xC6\x41\x05\x01\xB2\x00\x90/' /opt/sublime_text/sublime_text

@Talles-LS
Copy link

@Vitalicus Thanks!

@Fadi002
Copy link

Fadi002 commented May 23, 2025

Updated script for build 4200 ( windows only )
EDIT:

import sys
import os

NOP = 0x90
offsets_and_values = {
    0x00030170: 0x00,
    0x000A94D0: NOP, 0x000A94D1: NOP, 0x000A94D2: NOP, 0x000A94D3: NOP, 0x000A94D4: NOP, 0x000A94D5: NOP, 0x000A94D6: NOP, 0x000A94D7: NOP, 0x000A94D8: NOP, 0x000A94D9: NOP, 0x000A94DA: NOP, 0x000A94DB: NOP, 0x000A94DC: NOP, 0x000A94DD: NOP, 0x000A94DE: NOP, 0x000A94DF: NOP, 0x000A94E0: NOP, 0x000A94E1: NOP, 0x000A94E2: NOP, 0x000A94E3: NOP, 0x000A94E4: NOP, 0x000A94E5: NOP, 0x000A94E6: NOP, 0x000A94E7: NOP, 0x000A94E8: NOP, 0x000A94E9: NOP, 0x000A94EA: NOP, 0x000A94EB: NOP, 0x000A94EC: NOP, 0x000A94ED: NOP, 0x000A94EE: NOP, 0x000A94EF: NOP, 0x000A94F0: NOP, 0x000A94F1: NOP, 0x000A94F2: NOP, 0x000A94F3: NOP, 0x000A94F4: NOP, 0x000A94F5: NOP, 0x000A94F6: NOP, 0x000A94F7: NOP, 0x000A94F8: NOP, 0x000A94F9: NOP, 0x000A94FA: NOP, 0x000A94FB: NOP, 0x000A94FC: NOP, 0x000A94FD: NOP, 0x000A94FE: NOP, 0x000A94FF: NOP, 0x000A9500: NOP, 0x000A9501: NOP, 0x000A9502: NOP, 0x000A9503: NOP, 0x000A9504: NOP, 0x000A9505: NOP, 0x000A9506: NOP, 0x000A9507: NOP, 0x000A9508: NOP, 0x000A9509: NOP, 0x000A950A: NOP, 0x000A950B: NOP, 0x000A950C: NOP, 0x000A950D: NOP, 0x000A950E: NOP, 0x000A950F: NOP,
    0x001C6CCD: 0x02,
    0x001C6CE4: 0x00,
    0x001C6CFB: 0x00,
}

def patch_exe(input_file, output_file=None):
    output_file = output_file or f"{os.path.splitext(input_file)[0]}_patched.exe"
    try:
        with open(input_file, 'rb') as f:
            data = f.read()
        patched_data = bytearray(data)
        for offset, value in offsets_and_values.items():
            if offset < len(patched_data):
                patched_data[offset] = value
        with open(output_file, 'wb') as f:
            f.write(patched_data)
        print(f"[+] Patch applied successfully! Saved as: {output_file}")

    except Exception as e:
        print(f"Error: {e}")

if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("Usage: python patcher.py <input_file> [output_file]")
    else:
        patch_exe(sys.argv[1], sys.argv[2] if len(sys.argv) > 2 else None)

@CypherpunkSamurai
Copy link

Updated script for build 4200 ( windows only ) https://gist.github.com/Fadi002/51a505cece648915bc2f32f3b7e6b71d

Can you guys please keep the thread centralized and not off brand to your own gists. It helps keep track of who came up with which patch.

As well as it's easier to archive this thread.

@Woolfy025
Copy link

4200, Ubuntu sudo perl -pi -e 's/\x0F\xB6\x51\x05\x83\xF2\x01/\xC6\x41\x05\x01\xB2\x00\x90/' /opt/sublime_text/sublime_text

Thank you, Vitalicus. It works great on Arch as well.

@Hargriv
Copy link

Hargriv commented May 24, 2025

4200, Ubuntu sudo perl -pi -e 's/\x0F\xB6\x51\x05\x83\xF2\x01/\xC6\x41\x05\x01\xB2\x00\x90/' /opt/sublime_text/sublime_text

@Vitalicus Thanks on Linux Mint 22.1 the command worked perfectly

@being-siddhant
Copy link

@Vitalicus Thanks sir,
This is working on MX Linux too.
You made my day 🤗

@Fadi002
Copy link

Fadi002 commented May 24, 2025

@CypherpunkSamurai I posted it as a gist to keep the thread clean (the script is too long to post it here)

@CypherpunkSamurai
Copy link

@CypherpunkSamurai I posted it as a gist to keep the thread clean (the script is too long to post it here)

"too long" ?

I've posted longer code if you check comments.

I'm just saying, it's better if the thread is searchable and archivable (archive.org archivable). just paste everythng here. Finding the version code or patch bytes should easy as hitting Ctrl+F.

@Fadi002
Copy link

Fadi002 commented May 25, 2025

I'm just saying, it's better if the thread is searchable and archivable (archive.org archivable). just paste everythng here. Finding the version code or patch bytes should easy as hitting Ctrl+F.
Fair point

@mdtite
Copy link

mdtite commented May 27, 2025

How would you get this working on a M2 macos? Thanks

@CypherpunkSamurai
Copy link

How would you get this working on a M2 macos? Thanks

try the mac patches above, if you find the bytes in your binary it should work, else you'll have to crack yourself

@saoGITo
Copy link

saoGITo commented May 29, 2025

How would you get this working on a M2 macos? Thanks

ARM64 architecture (Apple Silicon)

For 4200

search -> replace

  • License Validity Checking (Aka IsValidLicense
    E6031EAAC7B80A94 -> 000080D2C0035FD6

  • Invalidation/Validation Functions
    628F0294 -> 1F2003D5
    5D8F0294 -> 1F2003D5

  • Server Validation Thread
    F657BDA9F44F01A9FD7B02A9FD8300918F910A94 -> 200080D2C0035FD61F2003D51F2003D51F2003D5

https://github.com/saoGITo/ST_crack

@mdtite
Copy link

mdtite commented May 29, 2025

Thank you everyone for the help!! I managed to activate it.
Screenshot 2025-05-29 at 12 58 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment