Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Crack Sublime Text and Sublime Merge

Note

  1. If you can, please purchase the genuine license through the official channel and support the software developer.
  2. All crack methods here are implemented by @leogx9r.
  3. All data is not guaranteed to be authoritative or correct, nor has it been tested across the platform, nor is it responsible for any errors, lost data, etc. in practice! Please assess yourself!!!
  4. I am only within the ability to update the information based on the existing crack methods until the existing rules fail.

ToC

Sublime Text Sublime Merge
Stable channel win / linux / mac / mac-arm64 win / linux / mac / mac-arm64
Dev channel win / linux / mac / mac-arm64 win / linux / mac / mac-arm64

How to Crack Sublime Text, Stable Channel, Build 4126

Thanks to @leogx9r for providing cracking methods.

https://gist.github.com/JerryLokjianming/71dac05f27f8c96ad1c8941b88030451?permalink_comment_id=3762200#gistcomment-3762200 https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3802197#gistcomment-3802197 https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3803204#gistcomment-3803204

Win64

Desciption Offset Original Patched
Initial License Check 0x000A7214 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x0000711A E8 E1 36 20 00 90 90 90 90 90
Persistent License Check 2 0x00007133 E8 C8 36 20 00 90 90 90 90 90
Disable Server Validation Thread 0x000A8D53 55 56 57 48 83 EC 30 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x000A6E0F 55 C3
Disable Crash Reporter 0x00000400 41 C3

for 4117, 4118: https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3927712#gistcomment-3927712

Bat Script
:: for Win64
cd /d "C:\Program Files\Sublime Text" || exit
certutil -hashfile sublime_text.exe md5 | find /i "924C781AC4FCD21A2B46C73B07D7BC27" || exit
echo 000A7214: 48 31 C0 C3          | xxd -r - sublime_text.exe 
echo 0000711A: 90 90 90 90 90       | xxd -r - sublime_text.exe 
echo 00007133: 90 90 90 90 90       | xxd -r - sublime_text.exe 
echo 000A8D53: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text.exe 
echo 000A6E0F: C3                   | xxd -r - sublime_text.exe 
echo 00000400: C3                   | xxd -r - sublime_text.exe 

PS:xxd.exe extracted from git for windows

The license can be any string.

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

Screenshot
![Screenshot](https://i.imgur.com/t4QlRZ6.png)

![Screenshot](https://i.imgur.com/18372Rh.png)

Linux

Desciption Offset Original Patched
Initial License Check 0x00385492 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x0037B675 E8 BE CB 11 00 90 90 90 90 90
Persistent License Check 2 0x0037B68B E8 AB CB 11 00 90 90 90 90 90
Disable Server Validation Thread 0x00386F4F 55 41 56 53 41 89 F6 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00385156 41 C3
Disable Crash Reporter 0x0036EF50 55 C3
Bash Script
# for Linux
cd /opt/sublime_text || exit
md5sum -c <<<"FECA809A08FD89F63C7CB9DA23089967  sublime_text" || exit
echo 00385492: 48 31 C0 C3          | xxd -r - sublime_text
echo 0037B675: 90 90 90 90 90       | xxd -r - sublime_text
echo 0037B68B: 90 90 90 90 90       | xxd -r - sublime_text
echo 00386F4F: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text
echo 00385156: C3                   | xxd -r - sublime_text
echo 0036EF50: C3                   | xxd -r - sublime_text

macOS

Desciption Offset Original Patched
Initial License Check 0x000933E6 55 48 89 E5 48 31 C0 C3
Persistent License Check 1 0x00008D6E E8 AF 55 12 00 90 90 90 90 90
Persistent License Check 2 0x00008D8D E8 90 55 12 00 90 90 90 90 90
Disable Server Validation Thread 0x00094743 55 48 89 E5 41 57 41 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00093004 55 C3
Disable Crash Reporter 0x00002ED7 55 C3
Bash Script
# for MacOS
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_text) = B945D6CCF73C966DC68A69A2C2D8F71E ] || exit
echo 000933E6: 48 31 C0 C3          | xxd -r - sublime_text
echo 00008D6E: 90 90 90 90 90       | xxd -r - sublime_text
echo 00008D8D: 90 90 90 90 90       | xxd -r - sublime_text
echo 00094743: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text
echo 00093004: C3                   | xxd -r - sublime_text
echo 00002ED7: C3                   | xxd -r - sublime_text
Re-Sign App
codesign --force --deep --sign - "/Applications/Sublime Text.app"

Requires Apple Command Line Tools to be installed

macOS (M1 ARM64)

Based on: https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3929427#gistcomment-3929427

Desciption Offset Original Patched
Initial License Check 0x00FF47B0 E6 03 1E AA E7 5F 0E 94 E0 03 1F AA C0 03 5F D6
Persistent License Check 1 0x00F85B3C 6F 98 03 94 1F 20 03 D5
Persistent License Check 2 0x00F85B50 6A 98 03 94 1F 20 03 D5
Disable Server Validation Thread 0x00FF589C F6 57 BD A9 C0 03 5F D6
Disable License Notify Thread 0x00FF4444 FC 6F BD A9 C0 03 5F D6
Disable Crash Reporter 0x00F811B8 FC 6F BC A9 C0 03 5F D6
Bash Script
# for macOS (M1 ARM64)
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_text) = B945D6CCF73C966DC68A69A2C2D8F71E ] || exit
echo 00FF47B0: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_text
echo 00F85B3C: 1F 20 03 D5             | xxd -r - sublime_text
echo 00F85B50: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FF589C: C0 03 5F D6             | xxd -r - sublime_text
echo 00FF4444: C0 03 5F D6             | xxd -r - sublime_text
echo 00F811B8: C0 03 5F D6             | xxd -r - sublime_text
Re-Sign App
codesign --force --deep --sign - "/Applications/Sublime Text.app"

Requires Apple Command Line Tools to be installed


How to Crack Sublime Text, Dev Channel, Build 4137

Thanks to @leogx9r for providing cracking methods.

https://gist.github.com/JerryLokjianming/71dac05f27f8c96ad1c8941b88030451?permalink_comment_id=3762200#gistcomment-3762200 https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3802197#gistcomment-3802197 https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3803204#gistcomment-3803204

Win64

Desciption Offset Original Patched
Initial License Check 0x000A9710 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x000071EE E8 3D 80 20 00 90 90 90 90 90
Persistent License Check 2 0x00007207 E8 24 80 20 00 90 90 90 90 90
Disable Server Validation Thread 0x000AB570 55 56 57 48 83 EC 30 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x000A92BB 55 C3
Disable Crash Reporter 0x00000400 41 C3

for 4117, 4118: https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3927712#gistcomment-3927712

Bat Script
:: for Win64
cd /d "C:\Program Files\Sublime Text" || exit
certutil -hashfile sublime_text.exe md5 | find /i "E2C0F7E9056FBE3473672827CFB3A226" || exit
echo 000A9710: 48 31 C0 C3          | xxd -r - sublime_text.exe 
echo 000071EE: 90 90 90 90 90       | xxd -r - sublime_text.exe 
echo 00007207: 90 90 90 90 90       | xxd -r - sublime_text.exe 
echo 000AB570: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text.exe 
echo 000A92BB: C3                   | xxd -r - sublime_text.exe 
echo 00000400: C3                   | xxd -r - sublime_text.exe 

PS:xxd.exe extracted from git for windows

The license can be any string.

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

Screenshot
![Screenshot](https://i.imgur.com/t4QlRZ6.png)

![Screenshot](https://i.imgur.com/18372Rh.png)

Linux

Desciption Offset Original Patched
Initial License Check 0x003A325C 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x00399257 E8 BC FC 11 00 90 90 90 90 90
Persistent License Check 2 0x00399272 E8 A1 FC 11 00 90 90 90 90 90
Disable Server Validation Thread 0x003A4E60 55 41 56 53 41 89 F6 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x003A2EEC 41 C3
Disable Crash Reporter 0x0038C9E0 55 C3
Bash Script
# for Linux
cd /opt/sublime_text || exit
md5sum -c <<<"E558C53C0FE9C1810E7687BE679F8E0F  sublime_text" || exit
echo 003A325C: 48 31 C0 C3          | xxd -r - sublime_text
echo 00399257: 90 90 90 90 90       | xxd -r - sublime_text
echo 00399272: 90 90 90 90 90       | xxd -r - sublime_text
echo 003A4E60: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text
echo 003A2EEC: C3                   | xxd -r - sublime_text
echo 0038C9E0: C3                   | xxd -r - sublime_text

macOS

Desciption Offset Original Patched
Initial License Check 0x00095208 55 48 89 E5 48 31 C0 C3
Persistent License Check 1 0x00008714 E8 1D 76 12 00 90 90 90 90 90
Persistent License Check 2 0x00008733 E8 FE 75 12 00 90 90 90 90 90
Disable Server Validation Thread 0x0009679B 55 48 89 E5 41 57 41 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00094DF6 55 C3
Disable Crash Reporter 0x00002887 55 C3
Bash Script
# for MacOS
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_text) = B4DACF6DF28B89C2695CB568B3AC3473 ] || exit
echo 00095208: 48 31 C0 C3          | xxd -r - sublime_text
echo 00008714: 90 90 90 90 90       | xxd -r - sublime_text
echo 00008733: 90 90 90 90 90       | xxd -r - sublime_text
echo 0009679B: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text
echo 00094DF6: C3                   | xxd -r - sublime_text
echo 00002887: C3                   | xxd -r - sublime_text
Re-Sign App
codesign --force --deep --sign - "/Applications/Sublime Text.app"

Requires Apple Command Line Tools to be installed

macOS (M1 ARM64)

Based on: https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3929427#gistcomment-3929427

Desciption Offset Original Patched
Initial License Check 0x01055A40 E6 03 1E AA 51 91 0E 94 E0 03 1F AA C0 03 5F D6
Persistent License Check 1 0x00FE5484 76 A5 03 94 1F 20 03 D5
Persistent License Check 2 0x00FE5498 71 A5 03 94 1F 20 03 D5
Disable Server Validation Thread 0x01056D2C F6 57 BD A9 C0 03 5F D6
Disable License Notify Thread 0x010556B0 FC 6F BD A9 C0 03 5F D6
Disable Crash Reporter 0x00FE0ACC FC 6F BC A9 C0 03 5F D6
Bash Script
# for macOS (M1 ARM64)
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_text) = B4DACF6DF28B89C2695CB568B3AC3473 ] || exit
echo 01055A40: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_text
echo 00FE5484: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FE5498: 1F 20 03 D5             | xxd -r - sublime_text
echo 01056D2C: C0 03 5F D6             | xxd -r - sublime_text
echo 010556B0: C0 03 5F D6             | xxd -r - sublime_text
echo 00FE0ACC: C0 03 5F D6             | xxd -r - sublime_text
Re-Sign App
codesign --force --deep --sign - "/Applications/Sublime Text.app"

Requires Apple Command Line Tools to be installed


How to Crack Sublime Merge, Stable Channel, Build 2077

Thanks to @leogx9r for providing cracking methods.

https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3823090#gistcomment-3823090 https://gist.github.com/JerryLokjianming/71dac05f27f8c96ad1c8941b88030451?permalink_comment_id=3762883#gistcomment-3762883 https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3802197#gistcomment-3802197

Win64

Desciption Offset Original Patched
Initial License Check 0x00025128 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x000285F3 E8 D0 F4 26 00 90 90 90 90 90
Persistent License Check 2 0x0002860C E8 B7 F4 26 00 90 90 90 90 90
Disable Server Validation Thread 0x00026947 55 56 57 48 83 EC 30 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00024D7B 55 C3
Disable Crash Reporter 0x0002410C 41 C3
Bat Script
:: for Win64
cd /d "C:\Program Files\Sublime Merge" || exit
certutil -hashfile sublime_merge.exe md5 | find /i "80E989A90DFE6D9C17F4985DCEAA8942" || exit
echo 00025128: 48 31 C0 C3             | xxd -r - sublime_merge.exe 
echo 000285F3: 90 90 90 90 90          | xxd -r - sublime_merge.exe 
echo 0002860C: 90 90 90 90 90          | xxd -r - sublime_merge.exe 
echo 00026947: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge.exe 
echo 00024D7B: C3                      | xxd -r - sublime_merge.exe 
echo 0002410C: C3                      | xxd -r - sublime_merge.exe

PS:xxd.exe extracted from git for windows

Linux

Desciption Offset Original Patched
Initial License Check 0x003CB652 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x003CE75D E8 CE D2 1D 00 90 90 90 90 90
Persistent License Check 2 0x003CE778 E8 B3 D2 1D 00 90 90 90 90 90
Disable Server Validation Thread 0x003CCC12 55 41 56 53 41 89 F6 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x003CB39E 41 C3
Disable Crash Reporter 0x003CAFCE 55 C3
Bash Script
# for Linux
cd /opt/sublime_merge || exit
md5sum -c <<<"189196010502F17EB99A38D8F64163BA  sublime_merge" || exit
echo 003CB652: 48 31 C0 C3             | xxd -r - sublime_merge 
echo 003CE75D: 90 90 90 90 90          | xxd -r - sublime_merge 
echo 003CE778: 90 90 90 90 90          | xxd -r - sublime_merge 
echo 003CCC12: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge 
echo 003CB39E: C3                      | xxd -r - sublime_merge 
echo 003CAFCE: C3                      | xxd -r - sublime_merge

macOS

Desciption Offset Original Patched
Initial License Check 0x000285AD 55 48 89 E5 48 31 C0 C3
Persistent License Check 1 0x0002AC80 E8 56 A0 22 00 90 90 90 90 90
Persistent License Check 2 0x0002AC9F E8 37 A0 22 00 90 90 90 90 90
Disable Server Validation Thread 0x0002952F 55 48 89 E5 41 57 41 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00028268 55 C3
Disable Crash Reporter 0x00027BE9 55 C3
Bash Script
# for MacOS
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_merge) = 7E05D29AF963DE90B683CA748B8A4E50 ] || exit
echo 000285AD: 48 31 C0 C3             | xxd -r - sublime_merge 
echo 0002AC80: 90 90 90 90 90          | xxd -r - sublime_merge 
echo 0002AC9F: 90 90 90 90 90          | xxd -r - sublime_merge 
echo 0002952F: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge 
echo 00028268: C3                      | xxd -r - sublime_merge 
echo 00027BE9: C3                      | xxd -r - sublime_merge
Re-Sign App
codesign --force --deep --sign - "/Applications/Sublime Merge.app"

Requires Apple Command Line Tools to be installed

macOS (M1 ARM64)

Based on:

Desciption Offset Original Patched
Initial License Check 0x014A0088 E6 03 1E AA 98 9B 10 94 E0 03 1F AA C0 03 5F D6
Persistent License Check 1 0x014A1FEC 2A 98 06 94 1F 20 03 D5
Persistent License Check 2 0x014A2000 25 98 06 94 1F 20 03 D5
Disable Server Validation Thread 0x014A0E0C F6 57 BD A9 C0 03 5F D6
Disable License Notify Thread 0x0149FDE0 FC 6F BD A9 C0 03 5F D6
Disable Crash Reporter 0x0149F81C FC 6F BC A9 C0 03 5F D6
Bash Script
# for macOS (M1 ARM64)
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_merge) = 7E05D29AF963DE90B683CA748B8A4E50 ] || exit
echo 014A0088: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_merge
echo 014A1FEC: 1F 20 03 D5             | xxd -r - sublime_merge 
echo 014A2000: 1F 20 03 D5             | xxd -r - sublime_merge 
echo 014A0E0C: C0 03 5F D6             | xxd -r - sublime_merge 
echo 0149FDE0: C0 03 5F D6             | xxd -r - sublime_merge 
echo 0149F81C: C0 03 5F D6             | xxd -r - sublime_merge
Re-Sign App
codesign --force --deep --sign - "/Applications/Sublime Merge.app"

Requires Apple Command Line Tools to be installed


How to Crack Sublime Merge, Dev Channel, Build 2076

Thanks to @leogx9r for providing cracking methods.

https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3823090#gistcomment-3823090 https://gist.github.com/JerryLokjianming/71dac05f27f8c96ad1c8941b88030451?permalink_comment_id=3762883#gistcomment-3762883 https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=3802197#gistcomment-3802197

Win64

Desciption Offset Original Patched
Initial License Check 0x00025128 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x000285F3 E8 D0 F4 26 00 90 90 90 90 90
Persistent License Check 2 0x0002860C E8 B7 F4 26 00 90 90 90 90 90
Disable Server Validation Thread 0x00026947 55 56 57 48 83 EC 30 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00024D7B 55 C3
Disable Crash Reporter 0x0002410C 41 C3
Bat Script
:: for Win64
cd /d "C:\Program Files\Sublime Merge" || exit
certutil -hashfile sublime_merge.exe md5 | find /i "914FBC5A56BF9F8C2117CF49DB633ED3" || exit
echo 00025128: 48 31 C0 C3             | xxd -r - sublime_merge.exe 
echo 000285F3: 90 90 90 90 90          | xxd -r - sublime_merge.exe 
echo 0002860C: 90 90 90 90 90          | xxd -r - sublime_merge.exe 
echo 00026947: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge.exe 
echo 00024D7B: C3                      | xxd -r - sublime_merge.exe 
echo 0002410C: C3                      | xxd -r - sublime_merge.exe

PS:xxd.exe extracted from git for windows

Linux

Desciption Offset Original Patched
Initial License Check 0x003CB612 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x003CE72B E8 CE D2 1D 00 90 90 90 90 90
Persistent License Check 2 0x003CE746 E8 B3 D2 1D 00 90 90 90 90 90
Disable Server Validation Thread 0x003CCBE0 55 41 56 53 41 89 F6 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x003CB35E 41 C3
Disable Crash Reporter 0x003CAF8E 55 C3
Bash Script
# for Linux
cd /opt/sublime_merge || exit
md5sum -c <<<"BBB46786DDCED1663B29EFE9870C68E6  sublime_merge" || exit
echo 003CB612: 48 31 C0 C3             | xxd -r - sublime_merge 
echo 003CE72B: 90 90 90 90 90          | xxd -r - sublime_merge 
echo 003CE746: 90 90 90 90 90          | xxd -r - sublime_merge 
echo 003CCBE0: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge 
echo 003CB35E: C3                      | xxd -r - sublime_merge 
echo 003CAF8E: C3                      | xxd -r - sublime_merge

macOS

Desciption Offset Original Patched
Initial License Check 0x000285ED 55 48 89 E5 48 31 C0 C3
Persistent License Check 1 0x0002ACB8 E8 56 A0 22 00 90 90 90 90 90
Persistent License Check 2 0x0002ACD7 E8 37 A0 22 00 90 90 90 90 90
Disable Server Validation Thread 0x00029567 55 48 89 E5 41 57 41 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x000282A8 55 C3
Disable Crash Reporter 0x00027C29 55 C3
Bash Script
# for MacOS
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_merge) = 2EE9C342B3174C4AE1EE7614C6E2DDC9 ] || exit
echo 000285ED: 48 31 C0 C3             | xxd -r - sublime_merge 
echo 0002ACB8: 90 90 90 90 90          | xxd -r - sublime_merge 
echo 0002ACD7: 90 90 90 90 90          | xxd -r - sublime_merge 
echo 00029567: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge 
echo 000282A8: C3                      | xxd -r - sublime_merge 
echo 00027C29: C3                      | xxd -r - sublime_merge
Re-Sign App
codesign --force --deep --sign - "/Applications/Sublime Merge.app"

Requires Apple Command Line Tools to be installed

macOS (M1 ARM64)

Based on:

Desciption Offset Original Patched
Initial License Check 0x014A0090 E6 03 1E AA 9D 9B 10 94 E0 03 1F AA C0 03 5F D6
Persistent License Check 1 0x014A1FE8 30 98 06 94 1F 20 03 D5
Persistent License Check 2 0x014A1FFC 2B 98 06 94 1F 20 03 D5
Disable Server Validation Thread 0x014A0E08 F6 57 BD A9 C0 03 5F D6
Disable License Notify Thread 0x0149FDE8 FC 6F BD A9 C0 03 5F D6
Disable Crash Reporter 0x0149F824 FC 6F BC A9 C0 03 5F D6
Bash Script
# for macOS (M1 ARM64)
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_merge) = 2EE9C342B3174C4AE1EE7614C6E2DDC9 ] || exit
echo 014A0090: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_merge
echo 014A1FE8: 1F 20 03 D5             | xxd -r - sublime_merge 
echo 014A1FFC: 1F 20 03 D5             | xxd -r - sublime_merge 
echo 014A0E08: C0 03 5F D6             | xxd -r - sublime_merge 
echo 0149FDE8: C0 03 5F D6             | xxd -r - sublime_merge 
echo 0149F824: C0 03 5F D6             | xxd -r - sublime_merge
Re-Sign App
codesign --force --deep --sign - "/Applications/Sublime Merge.app"

Requires Apple Command Line Tools to be installed

@maboloshi
Copy link
Author

maboloshi commented Jun 15, 2022

You just need to download xxd.exe and put it in the same directory as sublime_text.exe or sublime_merge.exe or in the system folder C:\Windows\.

@BeansIsFat
Copy link

BeansIsFat commented Jun 15, 2022

The bash scripts for Mac fail as written, because md5 prints a string that includes the filename. Quiet mode only prints the checksum so the command should be md5 -q.

@maboloshi
Copy link
Author

maboloshi commented Jun 15, 2022

The bash scripts for Mac fail as written, because md5 prints a string that includes the filename. Quiet mode only prints the checksum so the command should be md5 -q.

Back in the history, once did exist -q. 🤣

@leagueofperez
Copy link

leagueofperez commented Jul 28, 2022

I'm getting error trying to activate Sublime Text Build 4126 and Sublime Merge build 2074 in Linux (Ubuntu)
Installed sublime text from official sources
Apparently the sums doesn't match

  • md5sum -c <<<"FECA809A08FD89F63C7CB9DA23089967 /opt/sublime_text/sublime_text"

    • md5sum: WARNING: 1 computed checksum did NOT match
  • md5sum -c <<<"69ABF4A8D3C77CB8D3D1EF9B5A74CEE0 /opt/sublime_merge/sublime_merge"

    • md5sum: WARNING: 1 computed checksum did NOT match

if i run md5sum in both apps i get the following sums:

  • 69a0ef806580365aea640d61f92588b5 /opt/sublime_text/sublime_text
  • 338d4ebed5f796878e5735ea01dbbd7e /opt/sublime_merge/sublime_merge

@maboloshi
Copy link
Author

maboloshi commented Jul 29, 2022

@leagueofperez
My source files are from:

There may be differences in the compiled version of MD5 for different systems

@Destitute-Streetdwelling-Guttersnipe

Sweet! Now SM 2069 has the same result from license check function as ST. It's a good time to merge the patterns for SM and ST. I hope they won't change to 281 again (like they did before).

It's strange. It came back to 281 again in SM 2072. I wonder if it's a mistake that has happened too many times.

Now they reverted to 0 (instead of 281) in SM 2073. Let's see how long this ping pong game lasts.

281 for 2074 btw.

@n6333373 yup, 281 is back for another round of applause. @maboloshi it feels strange to have the patch before SM 2074 showing up in the official download page.

SM 2075 switch from 281 to 0 again. Just like a swinging pendulum 😅

@n6333373
Copy link

n6333373 commented Aug 2, 2022

yes, I implements a pendulum

Snipaste_2022-08-02_17-34-26

@Destitute-Streetdwelling-Guttersnipe

yes, I implements a pendulum

Snipaste_2022-08-02_17-34-26

@n6333373 wow, I've just realize that SM 2070 uses neither 0 nor 281. Is this the first version that uses 1? What a mess!

@MarcoHarris
Copy link

MarcoHarris commented Aug 8, 2022

does anyone have the address to patch for Both ST/SM running on Linux M1 ?

@Destitute-Streetdwelling-Guttersnipe

does anyone have the address to patch for Both ST/SM running on Linux M1 ?

@MarcoHarris you can use this for ST 4126 https://gist.github.com/JerryLokjianming/71dac05f27f8c96ad1c8941b88030451?permalink_comment_id=4202408#gistcomment-4202408
No need to patch anything!
For SM, you can buy a patch at a cheap price (less than $100).

@Fodin
Copy link

Fodin commented Aug 13, 2022

SM macOS 2074 (M1 ARM64) doesn't work. It writes that app is corrupted. I patched app with Hex Fiend and re-signed it.

codesign --force --deep --sign - "/Users/user/Downloads/Sublime Merge.app"
/Users/user/Downloads/Sublime Merge.app: replacing existing signature

@tukusejssirs
Copy link

tukusejssirs commented Aug 24, 2022

Thanks! The patch for Sublime Text 2077 is working. I tested it on Arch Linux.

Thanks! 🙏

@Lyahi
Copy link

Lyahi commented Aug 24, 2022

@tukusejssirs On my Arch it shows that the checksum is wrong. Which way did you use. Please give me a hint.

sublime-merge 2077-1

@tukusejssirs
Copy link

tukusejssirs commented Aug 24, 2022

@Lyahi, I installed SM the official way. Make sure you installed build 2077 (either using smerge --version command or HelpAbout Sublime Merge).

Then I simply followed the instructions. I ran commands one by one just make sure everything executes successfully.

You might have forgotten to cd /opt/sublime_merge. Another option would be to use absolute paths (in all command but cd replace sublime_merge with /opt/sublime_merge/sublime_merge.

Also, you need to have xxd installed. All those xdd commands needs to be run as root, as /opt/sublime_merge/sublime_merge are usually owned by root.


@maboloshi, I suggest to change your BASH code to something like this. Although your code works, I still think making a backup wouldn’t hurt and running xxd requires sudo, as files under /opt are owned by root by default.

# for Linux
file='/opt/sublime_merge/sublime_merge'
chsum='189196010502F17EB99A38D8F64163BA'

if md5sum -c --quiet <<< "$chsum $file"; then
   cp "$file"{,".$("$file" -v | grep -o '[0-9]*$')"}
   echo 003CB652: 48 31 C0 C3          | sudo xxd -r - "$file"
   echo 003CE75D: 90 90 90 90 90       | sudo xxd -r - "$file"
   echo 003CE778: 90 90 90 90 90       | sudo xxd -r - "$file"
   echo 003CCC12: 48 31 C0 48 FF C0 C3 | sudo xxd -r - "$file"
   echo 003CB39E: C3                   | sudo xxd -r - "$file"
   echo 003CAFCE: C3                   | sudo xxd -r - "$file"
fi

# Add a dummy licence
cat << EOF > ~/.config/sublime-merge/Local/License.sublime_license
----- BEGIN LICENSE -----
Your Name
Whatever Text
0000-000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
----- END LICENSE -----
EOF

Actually, @maboloshi, I don’t think we need to check if /opt/sublime_merge folder exists, but if $file exists, as the script does not really care about the folder itself nor other files under that folder. I changed that in my suggested code above.

Actually, md5sum already checks if the file exists, therefore checking for file existence is not needed at all. Removing that condition from my suggested code above.

Also I think that mentioning that one needs a dummy licence is a good thing. You might want to add that to Note[s] as the fifth point. It seems to be required by both ST and SM. I added a dummy licence in the suggested code above.

@Lyahi
Copy link

Lyahi commented Aug 24, 2022

@tukusejssirs Does the status remain unregistered after patching the file? In my case it does and I don't know if this is correct.

@tukusejssirs
Copy link

tukusejssirs commented Aug 24, 2022

@Lyahi, in HelpAbout Sublime Merge, it says Registered to Unlimited User License. Also in Help, there is an option to Remove License. Therefore my patched SM binary is ‘licensed’. 🤷‍♂️

How did you install install your SM? Did you follow the instructions carefully? What is the checksum of your file (md5sum /opt/sublime_merge/sublime_merge)?

@Lyahi
Copy link

Lyahi commented Aug 24, 2022

@tukusejssirs I am installing from SM.
pacman -Qi sublime-merge
Nazwa : sublime-merge
Wersja : 2077-1
Opis : Sublime Merge is a most excellent git client
Architektura : x86_64
Adres url : https://www.sublimemerge.com
Licencje : custom
Grupy : Brak
Dostarcza : Brak
Zależy od : gtk3 libcurl.so
Opcjonalne zależności : Brak
Wymagany przez : Brak
Opcjonalny dla : Brak
Konfliktuje z : Brak
Zastępuje : Brak
Rozmiar po instalacji : 20,97 MiB
Autor pakietu : Sublime HQ Packager
Data zbudowania : wto, 23 sie 2022, 03:38:45

md5sum /opt/sublime_merge/sublime_merge
189196010502f17eb99a38d8f64163ba /opt/sublime_merge/sublime_merge

After using the patch, the total changed, and the status continued unregistered.
151be274aa54b64a59a8dffb5187c5dd /opt/sublime_merge/sublime_merge

@tukusejssirs
Copy link

tukusejssirs commented Aug 24, 2022

@Lyahi, you have exactly same package installed as I have. Both checksums match mine.

Aargh! 🤦‍♂️ I have installed a dummy licence previously, therefore my patched SM worked as expected. The licence can be anything, you can replace anything in the string below except for ----- BEGIN LICENSE ----- and ----- END LICENSE ----- (and I think also newlines are required). You could also use @rufoa’s dummy licence.

Note that you need to restart SM after adding licence unless you enter the licence via UI or SM is not running when you add the licence.

Even @maboloshi states that [t]he license can be any string, although only in MS Windows instructions for ST 4126 and ST 4134

cat << EOF > ~/.config/sublime-merge/Local/License.sublime_license
----- BEGIN LICENSE -----
Your Name
Whatever Text
0000-000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
----- END LICENSE -----
EOF

@Lyahi
Copy link

Lyahi commented Aug 24, 2022

@tukusejssirs My English is very poor and I probably didn't understand something.
Thanks for your help. After entering the license correct license.

Best.

@Destitute-Streetdwelling-Guttersnipe

Sweet! Now SM 2069 has the same result from license check function as ST. It's a good time to merge the patterns for SM and ST. I hope they won't change to 281 again (like they did before).

It's strange. It came back to 281 again in SM 2072. I wonder if it's a mistake that has happened too many times.

Now they reverted to 0 (instead of 281) in SM 2073. Let's see how long this ping pong game lasts.

281 for 2074 btw.

@n6333373 yup, 281 is back for another round of applause. @maboloshi it feels strange to have the patch before SM 2074 showing up in the official download page.

SM 2075 switch from 281 to 0 again. Just like a swinging pendulum 😅

SM from 2075 to 2077 use 0. Does this pendulum hit a brick wall?

@Destitute-Streetdwelling-Guttersnipe

Aargh! 🤦‍♂️ I have installed a dummy licence previously, therefore my patched SM worked as expected. The licence can be anything, you can replace anything in the string below except for ----- BEGIN LICENSE ----- and ----- END LICENSE ----- (and I think also newlines are required). You could also use @rufoa’s dummy licence.

Note that you need to restart SM after adding licence unless you enter the licence via UI or SM is not running when you add the licence.

Even @maboloshi states that [t]he license can be any string, although only in MS Windows instructions for [ST 4126]

@tukusejssirs You don't need a dummy license. You can type anything (or nothing) into the license input box. It doesn't matter.

@monglung
Copy link

monglung commented Aug 26, 2022

@maboloshi : I think the offsets in SM2076 Linux for Disable License Notify Thread and Disable Crash Reporter are wrong. They both point to the same offset: 0x003CAF8E, since your description for the Original value are: 41 and 55...

@maboloshi
Copy link
Author

maboloshi commented Aug 29, 2022

@monglung Already fixed.

@HawickMason
Copy link

HawickMason commented Aug 29, 2022

macOS (M1 ARM64) Build 2074 (Stable) works!

@plakhin Would you pls share your case ~ I can't get it work using both of them from
image
and a pseudo license

@plakhin
Copy link

plakhin commented Aug 29, 2022

I'm not using any patches anymore

@maboloshi
Copy link
Author

maboloshi commented Sep 21, 2022

Who can help to test SM for macOS (M1 ARM64)?

SM2076

# for macOS (M1 ARM64)
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_merge) = 2EE9C342B3174C4AE1EE7614C6E2DDC9 ] || exit
echo 014A0090: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_merge
echo 014A1FE8: 1F 20 03 D5             | xxd -r - sublime_merge
echo 014A1FFC: 1F 20 03 D5             | xxd -r - sublime_merge
echo 014A0E08: C0 03 5F D6             | xxd -r - sublime_merge
echo 0149FDE8: C0 03 5F D6             | xxd -r - sublime_merge
echo 0149F824: C0 03 5F D6             | xxd -r - sublime_merge

SM2077

# for macOS (M1 ARM64)
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
[ $(md5 -q sublime_merge) = 7E05D29AF963DE90B683CA748B8A4E50 ] || exit
echo 014A0088: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_merge
echo 014A1FEC: 1F 20 03 D5             | xxd -r - sublime_merge
echo 014A2000: 1F 20 03 D5             | xxd -r - sublime_merge
echo 014A0E0C: C0 03 5F D6             | xxd -r - sublime_merge
echo 0149FDE0: C0 03 5F D6             | xxd -r - sublime_merge
echo 0149F81C: C0 03 5F D6             | xxd -r - sublime_merge

@Destitute-Streetdwelling-Guttersnipe

@maboloshi congrats! You've found the correct offsets for both 2076 & 2077.

@Destitute-Streetdwelling-Guttersnipe

@maboloshi The ToC looks crowded, you should add some space.
For example: win -- linux -- mac -- mac-arm64
Or: win / linux / mac / mac-arm64

@maboloshi
Copy link
Author

maboloshi commented Sep 22, 2022

Sublime Merge supplementary rules for macOS (M1 ARM64)

Desciption Regular Search Rule Relative Offset Patched Rule
Initial License Check (≥ 2075) br'\x00\x04\x40\xF9...\x17\xE6\x03\x1E\xAA...\x94\xFE\x03\x06\xAA' 8 b'\xE0\x03\x1F\xAA\xC0\x03\x5F\xD6'

@Destitute-Streetdwelling-Guttersnipe
Copy link

Destitute-Streetdwelling-Guttersnipe commented Sep 23, 2022

there are some interesting patches at https://gist.github.com/opastorello/4d494d627ec9012367028c89cb7a1945
One patch even works on all platforms

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