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 ------
@AxleUnix
Copy link

AxleUnix commented May 1, 2024

works on win10
Of course, otherwise I wouldn't be posting this.

@urxi
Copy link

urxi commented May 3, 2024

Here's the patch for the macOS version of ST 4174. Thanks to @Destitute-Streetdwelling-Guttersnipe for the B8 trick!

Clever tricks to improve the ARM64 part are also welcome :)

cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
md5 -q sublime_text | grep -i "99F7F9C8FE8AF673697189D456CC3287" || exit

echo 0004793F: B8 | xxd -r - sublime_text
echo 00047957: B8 | xxd -r - sublime_text
echo 000D5A30: C3 | xxd -r - sublime_text
echo 000D5DAF: C3 | xxd -r - sublime_text
echo 000D7199: C3 | xxd -r - sublime_text

echo 00F85AD8: 1F 20 03 D5             | xxd -r - sublime_text
echo 00F85AEC: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FF43C0: C0 03 5F D6             | xxd -r - sublime_text
echo 00FF46FC: 00 00 80 D2 C0 03 5F D6 | xxd -r - sublime_text
echo 00FF5870: C0 03 5F D6             | xxd -r - sublime_text

codesign --force --deep --sign - "/Applications/Sublime Text.app"

@Destitute-Streetdwelling-Guttersnipe
Copy link

@mochaaP
Copy link

mochaaP commented May 7, 2024

https://git.qvq.network/mochaa/sublime-launcher / prebuilt https://t.me/blob_storage/279

ptrace-based launcher for Linux x64.
Too lazy to write one for aarch64, sorry.

@STSMHQ
Copy link

STSMHQ commented Jun 1, 2024

@AxleUnix Thank you for the 4175 Crack. It worked perfectly on Windows 10.

@Destitute-Streetdwelling-Guttersnipe
Copy link

@bms8197
Copy link

bms8197 commented Jun 7, 2024

@urxi

The patch for ST 4174 works like a charm on MacOS Ventura, Apple M1 CPU. It doesn't work for ST 4175 though.

@urxi
Copy link

urxi commented Jun 8, 2024

@bms8197 That's to be expected: the patches are made specifically for each individual version.

Here's my patch for build 4175:

cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
md5 -q sublime_text | grep -i "EE117439E979FE295DCBE501CBA25091" || exit

echo 000D5CF3: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 0004787F: 90 90 90 90 90          | xxd -r - sublime_text
echo 00047897: 90 90 90 90 90          | xxd -r - sublime_text
echo 000D70E5: C3                      | xxd -r - sublime_text
echo 000D5974: C3                      | xxd -r - sublime_text

echo 00FF4654: 00 00 80 D2 C0 03 5F D6 | xxd -r - sublime_text
echo 00F85A44: 1F 20 03 D5             | xxd -r - sublime_text
echo 00F85A58: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FF57D4: C0 03 5F D6             | xxd -r - sublime_text
echo 00FF4318: C0 03 5F D6             | xxd -r - sublime_text

codesign --force --deep --sign - "/Applications/Sublime Text.app"

@urxi
Copy link

urxi commented Jun 8, 2024

@urxi for me @EchoEngineer77's patch worked fine on SM 2096

@HassanMirza01: It does now — he edited his patch after my comment!

@urxi you forget to set rax=0 in one case. it should be "31 C0 C3", not only "C3".

@Destitute-Streetdwelling-Guttersnipe: I know it "should", but C3 also worked in this case. Since I was minimizing the patch anyway, I went with the shortest code that worked.

@mochaaP
Copy link

mochaaP commented Jun 10, 2024

@Destitute-Streetdwelling-Guttersnipe

that launcher looks a bit messy,

Yeah, I quite agree with that, since the initial prototype was hacked together in an afternoon.
Maybe I will revise that some day, hopefully. :P

@BusyConcept
Copy link

BusyConcept commented Jun 22, 2024

Does anyone know what the equivalent of the 80 78 05 00 0F 94 C1 --> C6 40 05 01 48 85 C9 patch is for the 32-bit Windows builds? That patch works fine for the 64-bit Windows builds but not the 32-bit builds. I'm using the 64-bit build, but I'd like to have both builds for Archiving purposes.

@Destitute-Streetdwelling-Guttersnipe
Copy link

@BusyConcept
Copy link

BusyConcept commented Jun 25, 2024

@Destitute-Streetdwelling-Guttersnipe,

Yes, I should have mentioned that the most recent 32-bit build I have is b4126, which does work with the bypass that you mentioned. I do have b4169 which is working with the bypass I posted for the 64-bit build, but not for the 32-bit build. So it would be nice to find that same bypass for these later builds.

Thank you for the effort though.

@Destitute-Streetdwelling-Guttersnipe
Copy link

@n6333373
Copy link

n6333373 commented Jun 25, 2024

Fwiw, I've updated SelfPatcher to support Windows x32. Tested against ST 4175.

@BusyConcept
Copy link

@n6333373, the SelfPatcher works great, thank you for that!

You might want to look into that new license bypass method that I posted above. It's literally only 7-bytes that need to be replaced and it bypasses the whole license check and doesn't even require a license file. I've tested it on the 4126-4169 64-bit builds and it works great.

Find: 80 78 05 00 0F 94 C1
Replace: C6 40 05 01 48 85 C9

You'll see that ST shows "Registered to Unlimited User License" and if you try to "Remove License", it will do nothing. Seems like a nice simple bypass that appears to get the job done. Not sure if there is something I'm missing about why this method isn't as good as the others.

@aasastra
Copy link

aasastra commented Jun 26, 2024

Sublime Merge 2096 - use powershell

Stop-Process -Name "sublime_merge" -Force -ErrorAction SilentlyContinue
Set-Location -Path "C:\Program Files\Sublime Merge" -ErrorAction Stop

$hash = Get-FileHash .\sublime_merge.exe -Algorithm MD5
if ($hash.Hash -ne "B4E6827719B1B2FB7E3F6744DCDF0286") {
    exit
}

function Write-Bytes {
    param (
        [string]$file,
        [int64]$offset,
        [byte[]]$bytes
    )
    
    $stream = [System.IO.File]::Open($file, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Write)
    $stream.Seek($offset, [System.IO.SeekOrigin]::Begin) > $null
    $stream.Write($bytes, 0, $bytes.Length)
    $stream.Close()
}

Write-Bytes -file "C:\Program Files\Sublime Merge\sublime_merge.exe" -offset 0x0001d6b4 -bytes @(0x48, 0xC7, 0xC0, 0x00, 0x00, 0x00, 0x00, 0xC3)
Write-Bytes -file "C:\Program Files\Sublime Merge\sublime_merge.exe" -offset 0x0001fc3e -bytes @(0x90, 0x90, 0x90, 0x90, 0x90)
Write-Bytes -file "C:\Program Files\Sublime Merge\sublime_merge.exe" -offset 0x0001fc57 -bytes @(0x90, 0x90, 0x90, 0x90, 0x90)
Write-Bytes -file "C:\Program Files\Sublime Merge\sublime_merge.exe" -offset 0x0001e77d -bytes @(0xC3)
Write-Bytes -file "C:\Program Files\Sublime Merge\sublime_merge.exe" -offset 0x0001d3af -bytes @(0xC3)

Write-Output "Modifications complete."

Sublime Text 4169 - use powershell

Stop-Process -Name "sublime_text" -Force -ErrorAction SilentlyContinue
Set-Location -Path "C:\Program Files\Sublime Text" -ErrorAction Stop

$hash = Get-FileHash .\sublime_text.exe -Algorithm MD5
if ($hash.Hash -ne "5B3C8CEA0FCA4323F0E8A994209042A8") {
    exit
}

function Write-Bytes {
    param (
        [string]$file,
        [int64]$offset,
        [byte[]]$bytes
    )
    
    $stream = [System.IO.File]::Open($file, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Write)
    $stream.Seek($offset, [System.IO.SeekOrigin]::Begin) > $null
    $stream.Write($bytes, 0, $bytes.Length)
    $stream.Close()
}

Write-Bytes -file "C:\Program Files\Sublime Text\sublime_text.exe" -offset 0x000A0DBC -bytes @(0x48, 0xC7, 0xC0, 0x00, 0x00, 0x00, 0x00, 0xC3)
Write-Bytes -file "C:\Program Files\Sublime Text\sublime_text.exe" -offset 0x0000647C -bytes @(0x90, 0x90, 0x90, 0x90, 0x90)
Write-Bytes -file "C:\Program Files\Sublime Text\sublime_text.exe" -offset 0x00006495 -bytes @(0x90, 0x90, 0x90, 0x90, 0x90)
Write-Bytes -file "C:\Program Files\Sublime Text\sublime_text.exe" -offset 0x000A2B52 -bytes @(0xC3)
Write-Bytes -file "C:\Program Files\Sublime Text\sublime_text.exe" -offset 0x000A0983 -bytes @(0xC3)

Write-Output "Modifications complete."

@maboloshi
Copy link
Author

maboloshi commented Jun 27, 2024

Here is my powershell script, Sublime Merge 2096 example:

...
info 'Cracking . . .'
$sublimepath = \"$dir\\sublime_merge.exe\"
$stream = [System.IO.File]::OpenWrite($sublimepath)
@'
0x0001D6B4: 48 C7 C0 00 00 00 00 C3
0x0001FC3E: 90 90 90 90 90
0x0001FC57: 90 90 90 90 90
0x0001E77D: C3
0x0001D3AF: C3
'@ -split \"`r?`n\" | ForEach-Object {
    $offset, $data = ($_ -split ':').Trim()
    $offset = [convert]::ToInt32($offset, 16)
    $data = $data -split ' ' | ForEach-Object { [byte]::Parse($_, 'HexNumber') }
    $stream.Seek($offset, [System.IO.SeekOrigin]::Begin) | Out-Null
    $stream.Write($data, 0, $data.Length)
}
$stream.Close()

@cs-mshah
Copy link

cd /opt/sublime_text || exit
md5sum -c <<< "EA51D76D34A1EE908FD88CB8F0F351A6  sublime_text" || exit

echo 00446684: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 0042D960: 90 90 90 90 90          | xxd -r - sublime_text
echo 0042D978: 90 90 90 90 90          | xxd -r - sublime_text
echo 004485AA: C3                      | xxd -r - sublime_text
echo 004462E8: C3                      | xxd -r - sublime_text

I encountered an error with this on ubuntu 24.04. Here my working version:

#!/bin/bash

# Navigate to the directory containing sublime_text or exit if it doesn't exist
cd /opt/sublime_text || exit

# Check the MD5 checksum of sublime_text or exit if it doesn't match
echo "EA51D76D34A1EE908FD88CB8F0F351A6  sublime_text" | md5sum -c || exit

# Patch the binary file sublime_text at specified offsets
echo -n -e '\x48\xC7\xC0\x00\x00\x00\x00\xC3' | dd of=sublime_text bs=1 seek=$((0x00446684)) conv=notrunc
echo -n -e '\x90\x90\x90\x90\x90' | dd of=sublime_text bs=1 seek=$((0x0042D960)) conv=notrunc
echo -n -e '\x90\x90\x90\x90\x90' | dd of=sublime_text bs=1 seek=$((0x0042D978)) conv=notrunc
echo -n -e '\xC3' | dd of=sublime_text bs=1 seek=$((0x004485AA)) conv=notrunc
echo -n -e '\xC3' | dd of=sublime_text bs=1 seek=$((0x004462E8)) conv=notrunc

@n6333373
Copy link

n6333373 commented Jun 27, 2024

@n6333373, the SelfPatcher works great, thank you for that!

You might want to look into that new license bypass method that I posted above. It's literally only 7-bytes that need to be replaced and it bypasses the whole license check and doesn't even require a license file.

However, I treat the ability to use a custom username/seats as a feature on Windows. As a credit, the pattern comes from (@)bad1dea.

@BusyConcept
Copy link

@n6333373, Fair enough. 👍

@Destitute-Streetdwelling-Guttersnipe
Copy link

@raphaelarcanjo
Copy link

@EchoEngineer77: I'm not sure the last two offsets are correct -- I found other values.

Here are my patches for all current builds. Please let me know if the untested ones work or not.

Sublime Text (Stable Channel, Build 4169)

macOS (tested)
Linux (tested, thanks @leagueofperez)

cd /opt/sublime_text || exit
md5sum -c <<< "EA51D76D34A1EE908FD88CB8F0F351A6  sublime_text" || exit

echo 00446684: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 0042D960: 90 90 90 90 90          | xxd -r - sublime_text
echo 0042D978: 90 90 90 90 90          | xxd -r - sublime_text
echo 004485AA: C3                      | xxd -r - sublime_text
echo 004462E8: C3                      | xxd -r - sublime_text

Windows (tested, thanks @leagueofperez)

Sublime Text (Dev Channel, Build 4173)

macOS (tested)
Linux (untested)
Windows (untested)

Sublime Merge (Stable Channel, Build 2096)

macOS (tested)
Linux (tested, thanks @leagueofperez)

cd /opt/sublime_merge || exit
md5sum -c <<< "AFCBEF3317F68EB631418474DFCE4497  sublime_merge" || exit

echo 004A421C: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_merge
echo 004A6D9C: 90 90 90 90 90          | xxd -r - sublime_merge
echo 004A6DB5: 90 90 90 90 90          | xxd -r - sublime_merge
echo 004A5892: C3                      | xxd -r - sublime_merge
echo 004A3F86: C3                      | xxd -r - sublime_merge

Windows (tested, thanks @wtask & @leagueofperez)

Sublime Merge (Dev Channel, Build 2095)

macOS (tested)
Linux (untested)
Windows (tested, thanks @StarLeet)

Thank you very much! Worked fine on Linux SM 2096 and ST 4169

@mr-r0b0t-fsociety
Copy link

Can somebody please share the latest working method for Sublime Merge (Stable channel, Build 2096) for Mac? The existing ones shared in this thread don't work.

The md5sum is different than the others - this is what I get when I check the sum:

md5sum sublime_merge

>> cac97b667644d9176990ff8eec24b3d3

@AxleUnix
Copy link

AxleUnix commented Jul 19, 2024

Sublime Text Build 4177 (Dev Channel, Windows)

@echo off
:: for Win64, ST4177

cd /d ".\Sublime Text" || exit
md5sum sublime_text.exe | find /i "82a541eae99855dc78a3986361fd0eac" || exit

echo 00004DDA: 90 90 90 90 90          | xxd -r - sublime_text.exe
echo 00004DF3: 90 90 90 90 90          | xxd -r - sublime_text.exe
echo 0007F2A7: C3                      | xxd -r - sublime_text.exe
echo 0007F5C0: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text.exe
echo 00080D8A: C3                      | xxd -r - sublime_text.exe

Sublime Text Build 4177 (Dev Channel, Linux)

#!/bin/bash

# for Linux, ST4177
cd /opt/sublime_text || exit
md5sum -c <<< "d3cc733db6fb48726a05347a65227a87  sublime_text" || exit

echo 003E1264: 90 90 90 90 90          | xxd -r - sublime_text
echo 003E127C: 90 90 90 90 90          | xxd -r - sublime_text
echo 003F77BA: C3                      | xxd -r - sublime_text
echo 003F7A59: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text

Sublime Text Build 4178 (Dev Channel, Windows)

@echo off
:: for Win64, ST4 build 4178

cd /d ".\Sublime Text 4" || exit
md5sum sublime_text.exe | find /i "583fa16c67f0273f87c7efbf4e9f3737" || exit

echo 00004DDA: 90 90 90 90 90          | xxd -r - sublime_text.exe
echo 00004DF3: 90 90 90 90 90          | xxd -r - sublime_text.exe
echo 0007F367: C3                      | xxd -r - sublime_text.exe
echo 0007F680: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text.exe
echo 00080E46: C3                      | xxd -r - sublime_text.exe

Sublime Text Build 4178 (Dev Channel, Linux)

#!/bin/bash

# for Linux ST4178
cd /opt/sublime_text || exit
md5sum -c <<< "be5efe9cd716a74886521e87fdb45355  sublime_text" || exit

echo 003E11B4: 90 90 90 90 90          | xxd -r - sublime_text
echo 003E11CC: 90 90 90 90 90          | xxd -r - sublime_text
echo 003F770A: C3                      | xxd -r - sublime_text
echo 003F79A9: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 003F9694: C3                      | xxd -r - sublime_text

@urxi
Copy link

urxi commented Jul 21, 2024

Can somebody please share the latest working method for Sublime Merge (Stable channel, Build 2096) for Mac? The existing ones shared in this thread don't work.

Not sure where you got the binary from. Maybe you have already modified it?

The binary I just downloaded from the official website still has the f18216... MD5 checksum.

@urxi
Copy link

urxi commented Jul 21, 2024

Sublime Text (Dev Channel, Build 4177, macOS)

md5 -q sublime_text | grep -i "1905C28FF8B9D274D737F0A12288CF1D" || exit

echo 0009FB26: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 00092DDE: 90 90 90 90 90          | xxd -r - sublime_text
echo 00092DF6: 90 90 90 90 90          | xxd -r - sublime_text
echo 000A1109: C3                      | xxd -r - sublime_text
echo 0009F826: C3                      | xxd -r - sublime_text

echo 00FCA7D4: 00 00 80 D2 C0 03 5F D6 | xxd -r - sublime_text
echo 00FC0AC0: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FC0AD4: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FCBB74: C0 03 5F D6             | xxd -r - sublime_text
echo 00FCA544: C0 03 5F D6             | xxd -r - sublime_text

codesign --force --deep --sign - "/Applications/Sublime Text.app"

@Destitute-Streetdwelling-Guttersnipe

for some noob who don't have xxd to run the patching script:

you can run this at your bash prompt to emulate xxd:

xxd() ( # this function emulate "xxd -r - filename" with data from stdin
  patchdd(){ dd seek=$(($2)) of=$1 bs=1 conv=notrunc status=none; }
  while read ofs p ; do [[ -n $ofs ]] && printf \\x${p// /\\x} | patchdd $3 0x${ofs/:/} ; done
)

@mr-r0b0t-fsociety
Copy link

Can somebody please share the latest working method for Sublime Merge (Stable channel, Build 2096) for Mac? The existing ones shared in this thread don't work.

Not sure where you got the binary from. Maybe you have already modified it?

The binary I just downloaded from the official website still has the f18216... MD5 checksum.

Silly me, I was trying out a bunch of cracks earlier so of course the binary got modified.

However, even with the official binary, it is not working for me on M1 Mac. Can you/somebody confirm if the crack works with arm macs?

@Destitute-Streetdwelling-Guttersnipe
Copy link

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