Skip to content

Instantly share code, notes, and snippets.

@maboloshi
Last active November 16, 2024 15:06
Show Gist options
  • Save maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47 to your computer and use it in GitHub Desktop.
Save maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47 to your computer and use it in GitHub Desktop.
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.

Sublime Patcher Script for personal use

The code implementation is very poor.
https://gist.github.com/maboloshi/5baecbddacf43855f13240b63be5673d

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 4152

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 0x000A8D78 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x000071D0 E8 17 FE 20 00 90 90 90 90 90
Persistent License Check 2 0x000071E9 E8 FE FD 20 00 90 90 90 90 90
Disable Server Validation Thread 0x000AAB3E 55 56 57 48 83 EC 30 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x000A8945 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 "15BB398D5663B89A44372EF15F70A46F" || exit
echo 000A8D78: 48 31 C0 C3          | xxd -r - sublime_text.exe
echo 000071D0: 90 90 90 90 90       | xxd -r - sublime_text.exe
echo 000071E9: 90 90 90 90 90       | xxd -r - sublime_text.exe
echo 000AAB3E: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text.exe
echo 000A8945: 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 0x00415013 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x00409037 E8 C0 CC 12 00 90 90 90 90 90
Persistent License Check 2 0x0040904F E8 A8 CC 12 00 90 90 90 90 90
Disable Server Validation Thread 0x00416CA4 55 41 56 53 41 89 F6 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00414C82 41 C3
Disable Crash Reporter 0x003FA310 55 C3
Bash Script
# for Linux
cd /opt/sublime_text || exit
md5sum -c <<<"7038C3B1CC79504602DA70599D4CCCE9  sublime_text" || exit
echo 00415013: 48 31 C0 C3          | xxd -r - sublime_text
echo 00409037: 90 90 90 90 90       | xxd -r - sublime_text
echo 0040904F: 90 90 90 90 90       | xxd -r - sublime_text
echo 00416CA4: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text
echo 00414C82: C3                   | xxd -r - sublime_text
echo 003FA310: C3                   | xxd -r - sublime_text

macOS

Desciption Offset Original Patched
Initial License Check 0x0009F313 55 48 89 E5 48 31 C0 C3
Persistent License Check 1 0x00009CEF E8 3C 2D 13 00 90 90 90 90 90
Persistent License Check 2 0x00009D07 E8 24 2D 13 00 90 90 90 90 90
Disable Server Validation Thread 0x000A085D 55 48 89 E5 41 57 41 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x0009EF0E 55 C3
Disable Crash Reporter 0x00002A87 55 C3
Bash Script
# for MacOS
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
md5 -q sublime_text | grep -i "B07FDB3A228A46DF1CC178FE60B64D3B" || exit
echo 0009F313: 48 31 C0 C3          | xxd -r - sublime_text
echo 00009CEF: 90 90 90 90 90       | xxd -r - sublime_text
echo 00009D07: 90 90 90 90 90       | xxd -r - sublime_text
echo 000A085D: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text
echo 0009EF0E: C3                   | xxd -r - sublime_text
echo 00002A87: 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 (ARM64)

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

Desciption Offset Original Patched
Initial License Check 0x01060C90 FC 6F BA A9 E6 03 1E AA E0 03 1F AA C0 03 5F D6
Persistent License Check 1 0x00FEAD18 40 BB 03 94 1F 20 03 D5
Persistent License Check 2 0x00FEAD2C 3B BB 03 94 1F 20 03 D5
Disable Server Validation Thread 0x01061F28 F6 57 BD A9 C0 03 5F D6
Disable License Notify Thread 0x01060908 FC 6F BD A9 C0 03 5F D6
Disable Crash Reporter 0x00FE5780 FC 6F BC A9 C0 03 5F D6
Bash Script
# for macOS (ARM64)
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
md5 -q sublime_text | grep -i "B07FDB3A228A46DF1CC178FE60B64D3B" || exit
echo 01060C90: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_text
echo 00FEAD18: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FEAD2C: 1F 20 03 D5             | xxd -r - sublime_text
echo 01061F28: C0 03 5F D6             | xxd -r - sublime_text
echo 01060908: C0 03 5F D6             | xxd -r - sublime_text
echo 00FE5780: 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 4154

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 0x0009E47C 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x0000647C E8 23 7C 20 00 90 90 90 90 90
Persistent License Check 2 0x00006495 E8 0A 7C 20 00 90 90 90 90 90
Disable Server Validation Thread 0x000A0222 55 56 57 48 83 EC 30 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x0009E043 55 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 "ADF277D39672D83637AB708FC45413C8" || exit
echo 0009E47C: 48 31 C0 C3          | xxd -r - sublime_text.exe
echo 0000647C: 90 90 90 90 90       | xxd -r - sublime_text.exe
echo 00006495: 90 90 90 90 90       | xxd -r - sublime_text.exe
echo 000A0222: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text.exe
echo 0009E043: 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 0x00443F94 55 41 57 41 48 31 C0 C3
Persistent License Check 1 0x0042B210 E8 37 44 14 00 90 90 90 90 90
Persistent License Check 2 0x0042B228 E8 1F 44 14 00 90 90 90 90 90
Disable Server Validation Thread 0x00445EB6 55 41 56 53 41 89 F6 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00443BF8 41 C3
Bash Script
# for Linux
cd /opt/sublime_text || exit
md5sum -c <<<"8836FE092DBB7BC8D3D2375D34510CA9  sublime_text" || exit
echo 00443F94: 48 31 C0 C3          | xxd -r - sublime_text
echo 0042B210: 90 90 90 90 90       | xxd -r - sublime_text
echo 0042B228: 90 90 90 90 90       | xxd -r - sublime_text
echo 00445EB6: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text
echo 00443BF8: C3                   | xxd -r - sublime_text

macOS

Desciption Offset Original Patched
Initial License Check 0x0009D527 55 48 89 E5 48 31 C0 C3
Persistent License Check 1 0x000097F5 E8 AE 12 13 00 90 90 90 90 90
Persistent License Check 2 0x0000980D E8 96 12 13 00 90 90 90 90 90
Disable Server Validation Thread 0x0009EA9D 55 48 89 E5 41 57 41 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x0009D122 55 C3
Bash Script
# for MacOS
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
md5 -q sublime_text | grep -i "E1A3347BECDA7CC1EF583ECACECACBDC" || exit
echo 0009D527: 48 31 C0 C3          | xxd -r - sublime_text
echo 000097F5: 90 90 90 90 90       | xxd -r - sublime_text
echo 0000980D: 90 90 90 90 90       | xxd -r - sublime_text
echo 0009EA9D: 48 31 C0 48 FF C0 C3 | xxd -r - sublime_text
echo 0009D122: 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 (ARM64)

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

Desciption Offset Original Patched
Initial License Check 0x010758B8 FC 6F BA A9 E6 03 1E AA E0 03 1F AA C0 03 5F D6
Persistent License Check 1 0x01000360 33 A4 03 94 1F 20 03 D5
Persistent License Check 2 0x01000374 2E A4 03 94 1F 20 03 D5
Disable Server Validation Thread 0x01076B54 F6 57 BD A9 C0 03 5F D6
Disable License Notify Thread 0x01075534 FC 6F BD A9 C0 03 5F D6
Bash Script
# for macOS (ARM64)
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
md5 -q sublime_text | grep -i "E1A3347BECDA7CC1EF583ECACECACBDC" || exit
echo 010758B8: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_text
echo 01000360: 1F 20 03 D5             | xxd -r - sublime_text
echo 01000374: 1F 20 03 D5             | xxd -r - sublime_text
echo 01076B54: C0 03 5F D6             | xxd -r - sublime_text
echo 01075534: 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 2083

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 0x000251A8 55 41 57 41 56 41 55 41 48 C7 C0 19 01 00 00 C3
Persistent License Check 1 0x000286A3 E8 70 AA 26 00 90 90 90 90 90
Persistent License Check 2 0x000286BC E8 57 AA 26 00 90 90 90 90 90
Disable Server Validation Thread 0x000269B8 55 56 57 48 83 EC 30 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00024DCD 55 C3
Disable Crash Reporter 0x00023F18 41 C3
Bat Script
:: for Win64
cd /d "C:\Program Files\Sublime Merge" || exit
certutil -hashfile sublime_merge.exe md5 | find /i "E33B76ADA6E7E7577CD4E81A7A4580C7" || exit
echo 000251A8: 48 C7 C0 19 01 00 00 C3 | xxd -r - sublime_merge.exe
echo 000286A3: 90 90 90 90 90          | xxd -r - sublime_merge.exe
echo 000286BC: 90 90 90 90 90          | xxd -r - sublime_merge.exe
echo 000269B8: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge.exe
echo 00024DCD: C3                      | xxd -r - sublime_merge.exe
echo 00023F18: C3                      | xxd -r - sublime_merge.exe

PS:xxd.exe extracted from git for windows

Linux

thinks @urxi here

Bash Script
# for Linux
cd /opt/sublime_merge || exit
md5sum -c <<<"86F61A82E7EE8DD9BDC4CF16A7C8E825  sublime_merge" || exit
echo 0045A360: 48 C7 C0 19 01 00 00 C3 | xxd -r - sublime_merge
echo 0045D21D: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0045D23A: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0045B990: C3                      | xxd -r - sublime_merge
echo 0045A05A: C3                      | xxd -r - sublime_merge
echo 00459ABA: C3                      | xxd -r - sublime_merge

macOS

Desciption Offset Original Patched
Initial License Check 0x0002C2DF 55 48 89 E5 41 57 41 56 48 C7 C0 19 01 00 00 C3
Persistent License Check 1 0x0002E96C E8 1F B9 18 00 90 90 90 90 90
Persistent License Check 2 0x0002E98B E8 00 B9 18 00 90 90 90 90 90
Disable Server Validation Thread 0x0002D295 55 48 89 E5 41 57 41 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x0002BF6A 55 C3
Disable Crash Reporter 0x0002B7AB 55 C3
Bash Script
# for MacOS
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
md5 -q sublime_merge | grep -i "B1AADED4F196EEEEBF8D5A6F98B11288" || exit
echo 0002C2DF: 48 C7 C0 19 01 00 00 C3 | xxd -r - sublime_merge
echo 0002E96C: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0002E98B: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0002D295: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge
echo 0002BF6A: C3                      | xxd -r - sublime_merge
echo 0002B7AB: 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 (ARM64)

!!!! May have expired !!!!

Based on:

Desciption Offset Original Patched
Initial License Check 0x014D9060 FC 6F BA A9 E6 03 1E AA E0 03 1F AA C0 03 5F D6
Persistent License Check 1 0x014DAF68 AB B6 04 94 1F 20 03 D5
Persistent License Check 2 0x014DAF7C A6 B6 04 94 1F 20 03 D5
Disable Server Validation Thread 0x014D9DBC F6 57 BD A9 C0 03 5F D6
Disable License Notify Thread 0x014D8D9C FC 6F BD A9 C0 03 5F D6
Disable Crash Reporter 0x014D86E4 FC 6F BC A9 C0 03 5F D6
Bash Script
# for macOS (ARM64)
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
md5 -q sublime_merge | grep -i "B1AADED4F196EEEEBF8D5A6F98B11288" || exit
echo 014D9060: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_merge
echo 014DAF68: 1F 20 03 D5             | xxd -r - sublime_merge
echo 014DAF7C: 1F 20 03 D5             | xxd -r - sublime_merge
echo 014D9DBC: C0 03 5F D6             | xxd -r - sublime_merge
echo 014D8D9C: C0 03 5F D6             | xxd -r - sublime_merge
echo 014D86E4: 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 2085

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 0x00025300 55 41 57 41 56 41 55 41 48 C7 C0 19 01 00 00 C3
Persistent License Check 1 0x00028813 E8 B8 7F 27 00 90 90 90 90 90
Persistent License Check 2 0x0002882C E8 9F 7F 27 00 90 90 90 90 90
Disable Server Validation Thread 0x00026B20 55 56 57 48 83 EC 30 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x00024F25 55 C3
Disable Crash Reporter 0x00024070 41 C3
Bat Script
:: for Win64
cd /d "C:\Program Files\Sublime Merge" || exit
certutil -hashfile sublime_merge.exe md5 | find /i "8B6590708E6AAE98AC3AE29135DB084F" || exit
echo 00025300: 48 C7 C0 19 01 00 00 C3 | xxd -r - sublime_merge.exe
echo 00028813: 90 90 90 90 90          | xxd -r - sublime_merge.exe
echo 0002882C: 90 90 90 90 90          | xxd -r - sublime_merge.exe
echo 00026B20: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge.exe
echo 00024F25: C3                      | xxd -r - sublime_merge.exe
echo 00024070: C3                      | xxd -r - sublime_merge.exe

PS:xxd.exe extracted from git for windows

Linux

thinks @urxi here

Bash Script
# for Linux
cd /opt/sublime_merge || exit
md5sum -c <<<"958DA6B7EC687B25F55A16FF6A3D9BD0  sublime_merge" || exit
echo 0045F22C: 48 C7 C0 19 01 00 00 C3 | xxd -r - sublime_merge
echo 004620F9: 90 90 90 90 90          | xxd -r - sublime_merge
echo 00462116: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0046086C: C3                      | xxd -r - sublime_merge
echo 0045EF26: C3                      | xxd -r - sublime_merge
echo 0045E986: C3                      | xxd -r - sublime_merge

macOS

Desciption Offset Original Patched
Initial License Check 0x0002C4CB 55 48 89 E5 41 57 41 56 48 C7 C0 19 01 00 00 C3
Persistent License Check 1 0x0002EB48 E8 15 23 19 00 90 90 90 90 90
Persistent License Check 2 0x0002EB67 E8 F6 22 19 00 90 90 90 90 90
Disable Server Validation Thread 0x0002D471 55 48 89 E5 41 57 41 48 31 C0 48 FF C0 C3
Disable License Notify Thread 0x0002C156 55 C3
Disable Crash Reporter 0x0002B997 55 C3
Bash Script
# for MacOS
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
md5 -q sublime_merge | grep -i "D67510219FB14938A47BE39260C87215" || exit
echo 0002C4CB: 48 C7 C0 19 01 00 00 C3 | xxd -r - sublime_merge
echo 0002EB48: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0002EB67: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0002D471: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_merge
echo 0002C156: C3                      | xxd -r - sublime_merge
echo 0002B997: 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 (ARM64)

!!!! May have expired !!!!

Based on:

Desciption Offset Original Patched
Initial License Check 0x015027EC FC 6F BA A9 E6 03 1E AA E0 03 1F AA C0 03 5F D6
Persistent License Check 1 0x015046D4 78 C9 04 94 1F 20 03 D5
Persistent License Check 2 0x015046E8 73 C9 04 94 1F 20 03 D5
Disable Server Validation Thread 0x0150352C F6 57 BD A9 C0 03 5F D6
Disable License Notify Thread 0x01502528 FC 6F BD A9 C0 03 5F D6
Disable Crash Reporter 0x01501E70 FC 6F BC A9 C0 03 5F D6
Bash Script
# for macOS (ARM64)
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
md5 -q sublime_merge | grep -i "D67510219FB14938A47BE39260C87215" || exit
echo 015027EC: E0 03 1F AA C0 03 5F D6 | xxd -r - sublime_merge
echo 015046D4: 1F 20 03 D5             | xxd -r - sublime_merge
echo 015046E8: 1F 20 03 D5             | xxd -r - sublime_merge
echo 0150352C: C0 03 5F D6             | xxd -r - sublime_merge
echo 01502528: C0 03 5F D6             | xxd -r - sublime_merge
echo 01501E70: 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

ST's new version of hexadecimal editing method

From: https://gist.github.com/opastorello/4d494d627ec9012367028c89cb7a1945

Search : 80 78 05 00 0f 94 c1 first result , replace: c6 40 05 01 48 85 c9

This patch is applicable to all x86-64 CPU platforms of ST.

ST's old version hexadecimal editing method

From: https://gist.github.com/opastorello/4d494d627ec9012367028c89cb7a1945?permalink_comment_id=4495369#gistcomment-4495369

97 94 0D --> 00 00 00

License Key:

----- 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 ------
@Destitute-Streetdwelling-Guttersnipe

@maboloshi I would prefer the ToC to be more compact, something like this:

Sublime Text Sublime Merge
Stable channel win linux mac win linux mac
Dev channel win linux mac win linux mac

@maboloshi
Copy link
Author

@class101
Copy link

class101 commented Jun 15, 2022

Rather than mentionning xxd is in Git for Windows and mess up with environment variables, this works too and is cleaner in my opinion

  • Get MSYS2
  • Replace find /i with find -iname

Works without much changes, xxd is already part of MSYS2 default packages

Nobody uses Git for Windows when it comes to bash executions except noobs, MSYS2 is much up to dates for this.

 pacman -F xxd
msys/bash-completion 2.11-2 [installed]
    usr/share/bash-completion/completions/xxd

@n6333373
Copy link

n6333373 commented Jun 15, 2022

For Git for Windows users: why I need MSYS2?
For MSYS2 users: why I need Git for Windows? You noobs?
For geek users: why I need any of above while OP has provided a single xxd.exe?

PS:xxd.exe extracted from git for windows

@class101
Copy link

class101 commented Jun 15, 2022

Because he seems to suggest

  • Open CMD.exe (because find /i) is Windows
  • Make the necessary actions so that typing xxd in CMD.exe works (which is not the case by defaut, xxd has to be in a a path set by the env variable PATH, that is dirty to do)

Thus why suggesting to

  • Use bash of Windows Git ( find /i) won't work unless you change it to find -iname
  • Use bash of MSYS2 ( find /i) won't work too unless you change it to find -iname

Not sure why he changed the Windows procedure, before you just had to load a CMD.exe, exec the script, job done

@maboloshi
Copy link
Author

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

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

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

@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

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

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

@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

@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

@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

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