Skip to content

Instantly share code, notes, and snippets.

@maboloshi
Last active December 12, 2024 15:35
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
Copy link

@huo-feng-ding
Copy link

Sublime Merge 2102 how to patch

Sublime Self Patcher

patcher-95pu2a4i Sublime Merge - Sublime Merge (ADMIN) patch

image
is there something wrong?
my computer is windows 11

@n6333373
Copy link

is there something wrong?

yes, the first line in the readme speaks itself.

@huo-feng-ding
Copy link

is there something wrong?

yes, the first line in the readme speaks itself.

use sublime_txt to patch sublime_merge , that's work, successful
thx

@meetajhu
Copy link

meetajhu commented Oct 30, 2024

@urxi Any hopes for Sublime Merge (Stable Channel, Build 2101) for MacOS?

@leagueofperez
Copy link

Sublime Merge 2102 how to patch

Sublime Self Patcher
patcher-95pu2a4i Sublime Merge - Sublime Merge (ADMIN) patch

image is there something wrong? my computer is windows 11

Followed steps from README in sublime-self-patcher repo but I am facing same problem in Sublime Merge 2102 Stable Linux 64 bit
image

@Destitute-Streetdwelling-Guttersnipe
Copy link

@n6333373
Copy link

n6333373 commented Nov 5, 2024

@n6333373 you should update README to stop noobs from making these mistakes.

There is nothing you can do if people don't read what you write. FYI: https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47?permalink_comment_id=5256706#gistcomment-5256706

The first line in the readme:

This is a Sublime Text 4 plugin which can patch Sublime Text and Sublime Merge.

@leagueofperez
Copy link

@leagueofperez this patcher is a ST plugin, not a SM plugin. @n6333373 you should update README to stop noobs from making these mistakes.

If README say you can patch sublime merge people will try to patch sublime merge 🤷

This is a Sublime Text 4 plugin which can patch Sublime Text and Sublime Merge .

@n6333373
Copy link

n6333373 commented Nov 5, 2024

If README say you can patch sublime merge people will try to patch sublime merge 🤷

Well, that's supported indeed.

@EchoEngineer77
Copy link

EchoEngineer77 commented Nov 8, 2024

Sublime Merge 2102

Linux x64

echo 00494512: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_merge
echo 00497105: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0049711D: 90 90 90 90 90          | xxd -r - sublime_merge
echo 0049428A: C3                      | xxd -r - sublime_merge
echo 00495BD2: C3                      | xxd -r - sublime_merge

Windows x64

echo 0001CCC8: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_merge.exe
echo 0001F20A: 90 90 90 90 90          | xxd -r - sublime_merge.exe
echo 0001F223: 90 90 90 90 90          | xxd -r - sublime_merge.exe
echo 0001DD99: C3                      | xxd -r - sublime_merge.exe
echo 0001C9BF: C3                      | xxd -r - sublime_merge.exe

@EchoEngineer77
Copy link

Sublime Text 4180

Linux x64

echo 003F75D9: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 003E0E7A: 90 90 90 90 90          | xxd -r - sublime_text
echo 003E0E92: 90 90 90 90 90          | xxd -r - sublime_text
echo 003F92EC: C3                      | xxd -r - sublime_text
echo 003F733A: C3                      | xxd -r - sublime_text

Windows x64

echo 0007F5F0: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text.exe
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 0007F2D7: C3                      | xxd -r - sublime_text.exe
echo 00080D82: C3                      | xxd -r - sublime_text.exe

@leagueofperez
Copy link

leagueofperez commented Nov 8, 2024

thanks @EchoEngineer77 tried Sublime Text 4180 and Sublime Merge 2102 in Linux x64 and works!

@urxi
Copy link

urxi commented Nov 8, 2024

macOS builds

Sublime Text (Stable Channel, Build 4180)
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
md5 -q sublime_text | grep -i "9ED6743DE5C681C793C806309C4B3F53" || exit

echo 0009FA2A: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 00092DDB: 90 90 90 90 90          | xxd -r - sublime_text
echo 00092DF3: 90 90 90 90 90          | xxd -r - sublime_text
echo 000A1019: C3                      | xxd -r - sublime_text
echo 0009F72A: C3                      | xxd -r - sublime_text

echo 00FCA6AC: 00 00 80 D2 C0 03 5F D6 | xxd -r - sublime_text
echo 00FC0AC4: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FC0AD8: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FCBA4C: C0 03 5F D6             | xxd -r - sublime_text
echo 00FCA41C: C0 03 5F D6             | xxd -r - sublime_text

codesign --force --deep --sign - "/Applications/Sublime Text.app"
Sublime Text (Dev Channel, Build 4183)
cd "/Applications/Sublime Text.app/Contents/MacOS/" || exit
md5 -q sublime_text | grep -i "100857A90BBC643FF2AFFE9FF496DAB2" || exit

echo 0009F7CC: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 00092A54: 90 90 90 90 90          | xxd -r - sublime_text
echo 00092A6C: 90 90 90 90 90          | xxd -r - sublime_text
echo 000A0DF1: C3                      | xxd -r - sublime_text
echo 0009F482: C3                      | xxd -r - sublime_text

echo 00FB65F8: 00 00 80 D2 C0 03 5F D6 | xxd -r - sublime_text
echo 00FAC89C: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FAC8B0: 1F 20 03 D5             | xxd -r - sublime_text
echo 00FB79CC: C0 03 5F D6             | xxd -r - sublime_text
echo 00FB62F8: C0 03 5F D6             | xxd -r - sublime_text

codesign --force --deep --sign - "/Applications/Sublime Text.app"
Sublime Merge (Stable Channel, Build 2102)
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
md5 -q sublime_merge | grep -i "980AE5632EA58F7E4ECD55B7CE16D6BB" || exit

echo 000AFFCA: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_merge
echo 000B24C6: 90 90 90 90 90          | xxd -r - sublime_merge
echo 000B24E5: 90 90 90 90 90          | xxd -r - sublime_merge
echo 000B0D8B: C3                      | xxd -r - sublime_merge
echo 000AFCE6: C3                      | xxd -r - sublime_merge

echo 013D30C4: 00 00 80 D2 C0 03 5F D6 | xxd -r - sublime_merge
echo 013D4DB4: 1F 20 03 D5             | xxd -r - sublime_merge
echo 013D4DC8: 1F 20 03 D5             | xxd -r - sublime_merge
echo 013D3C60: C0 03 5F D6             | xxd -r - sublime_merge
echo 013D2E4C: C0 03 5F D6             | xxd -r - sublime_merge

codesign --force --deep --sign - "/Applications/Sublime Merge.app"
Sublime Merge (Dev Channel, Build 2101)
cd "/Applications/Sublime Merge.app/Contents/MacOS/" || exit
md5 -q sublime_merge | grep -i "4FB449D0E13CA47E2EA1289519C3048C" || exit

echo 000AFFB6: 48 C7 C0 19 01 00 00 C3 | xxd -r - sublime_merge
echo 000B24D0: 90 90 90 90 90          | xxd -r - sublime_merge
echo 000B24EF: 90 90 90 90 90          | xxd -r - sublime_merge
echo 000B0D8F: C3                      | xxd -r - sublime_merge
echo 000AFCD2: C3                      | xxd -r - sublime_merge

echo 013D30B4: 20 23 80 D2 C0 03 5F D6 | xxd -r - sublime_merge
echo 013D4DA8: 1F 20 03 D5             | xxd -r - sublime_merge
echo 013D4DBC: 1F 20 03 D5             | xxd -r - sublime_merge
echo 013D3C50: C0 03 5F D6             | xxd -r - sublime_merge
echo 013D2E3C: C0 03 5F D6             | xxd -r - sublime_merge

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

@DrunkenAlcoholic
Copy link

DrunkenAlcoholic commented Nov 9, 2024

Linux Sublime-Text-Dev Build 4183

md5sum Before: 3bbfc7a339860c8ca921a93c9144718c
md5sum After : c35854465a5f0073ced1d485f80d5f91

Screenshot from 2024-11-09 10-10-07

@maxborowsky
Copy link

maxborowsky commented Nov 19, 2024

@n6333373
Ubuntu 22.04 LTS, GNOME Shell 42.9

ST 4183:

Screenshot from 2024-11-19 06-44-28
Screenshot from 2024-11-19 06-45-09

The plugin is installed where it should be according to the instructions, but when starting ST there is no plugin pop-up window. (For Windows, on the contrary, it worked.) I tried to put the plugin in .config/... etc not for the user, but for root and run ST with sudo, but the result, alas, is the same :-(

@Destitute-Streetdwelling-Guttersnipe
Copy link

@n6333373
Copy link

@maxborowsky What's the output of ldd --version in your console? Probably I need an older GLIBC environment to build that .pyd file. As a workaround you may patch a linux binary on Windows ST.

@maxborowsky
Copy link

@n6333373

What's the output of in your console?

ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35

@DrunkenAlcoholic
Copy link

@DrunkenAlcoholic your BinaryCompare looks cool with good spacing and pleasant colors. The font looks a bit weird with 0x3E1C90 similar to 0×3E1C9.

@Destitute-Streetdwelling-Guttersnipe
Thank you, it's screen shot of my terminal output, meaning the font is dictated by the font I having in my settings, it will probably look different if you ran this in your own terminal, compare binary is program I wrote, so besides from the colours and spacing which I have set, the font is completely up to the end user

@Bruskyer
Copy link

@Destitute-Streetdwelling-Guttersnipe
Copy link

@maxborowsky
Copy link

@n6333373

patch a linux binary on Windows ST

Sorry, it doesn't work (ST 4183, Ubuntu 22.04 LTS). I copied to /opt/sublime_text the patched file, but the program requires a license:

Screenshot from 2024-11-27 02-02-50

@n6333373
Copy link

@maxborowsky just use literally anything as the license.

@AxleUnix
Copy link

AxleUnix commented Nov 27, 2024

Sublime Text Dev Channel, Build 4184 (Win64)
@echo off
:: ST4 Dev Channel, Build 4184, Win64

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

echo 00004DFA: 90 90 90 90 90          | xxd -r - sublime_text.exe
echo 00004E13: 90 90 90 90 90          | xxd -r - sublime_text.exe
echo 0007FF9B: 48 31 C0 C3             | xxd -r - sublime_text.exe
echo 00081AB0: 48 31 C0 48 FF C0 C3    | xxd -r - sublime_text.exe
echo 000802CD: 48 31 C0 C3             | xxd -r - sublime_text.exe
Sublime Text Dev Channel, Build 4184 (Linux64)
#!/bin/bash

# ST4 Dev Channel, Build 4184, Linux64
cd /opt/sublime_text || exit
md5sum -c <<< "8a345430a309bd085637643da7524e1b  sublime_text" || exit

echo 003E70CC: 90 90 90 90 90          | xxd -r - sublime_text
echo 003E70E4: 90 90 90 90 90          | xxd -r - sublime_text
echo 003FD5B2: C3                      | xxd -r - sublime_text
echo 003FD896: 48 C7 C0 00 00 00 00 C3 | xxd -r - sublime_text
echo 003FF550: C3                      | xxd -r - sublime_text
Sublime Text Dev Channel, Build 4185 (Win64)
@echo off
:: for Win64, ST4 build 4185

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

echo 00004DFA: 90 90 90 90 90          | xxd -r - sublime_text.exe
echo 00004E13: 90 90 90 90 90          | xxd -r - sublime_text.exe
echo 0008007B: 48 31 C0 C3             | xxd -r - sublime_text.exe
echo 000803AD: 48 31 C0 C3    | xxd -r - sublime_text.exe
echo 00081B92: 48 31 C0 C3             | xxd -r - sublime_text.exe

@DrunkenAlcoholic
Copy link

Linux Sublime-Text-Dev Build 4184

md5sum Before: 80adb52508d1f39ae22678272b9313a5
md5sum After : 5d77b05c5dfcfef586c237e273896b66

image

@n6333373
Copy link

n6333373 commented Dec 1, 2024

@n6333373

What's the output of in your console?

ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35

I have recompiled the plugin on an old OS which uses glibc 2.17. The plugin should now work on your setup too.

@Destitute-Streetdwelling-Guttersnipe
Copy link

@DrunkenAlcoholic
Copy link

DrunkenAlcoholic commented Dec 12, 2024

Linux Sublime-Text-Dev Build 4185

md5sum Before: 4da1d6027ffbb0dcf4b361cad52b4448
md5sum After : 1ae1796731ae319ff2f36f8c992ae65f

image

@DrunkenAlcoholic
Copy link

DrunkenAlcoholic commented Dec 12, 2024

@DrunkenAlcoholic your patch for 8B 77 20 doesn't prevent ST "phone home". You may block sublimehq instead.

When they change the byte sequence I will revise it for RET, but for now the wildcard patcher has been working over the last 5 releases without any issues or changes to the code. Feel free to modify it your self, the project is on my github..

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