Skip to content

Instantly share code, notes, and snippets.

@JerryLokjianming
Last active December 21, 2024 12:30
Show Gist options
  • Save JerryLokjianming/71dac05f27f8c96ad1c8941b88030451 to your computer and use it in GitHub Desktop.
Save JerryLokjianming/71dac05f27f8c96ad1c8941b88030451 to your computer and use it in GitHub Desktop.
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

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

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

Screenshot


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

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

Screenshot


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

Screenshot

Screenshot

Screenshot


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

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

Screenshot


@sandkalam
Copy link

anyone know about sublime merge?

@Fireshtorm1k
Copy link

Fireshtorm1k commented Nov 3, 2024

anyone know about sublime merge?

@sandkalam

Same like here but another address

@ChaoticHolon
Copy link

Do not click this link ^ Malware.

@amrishukumar
Copy link

80 79 05 00 0F 94 C2

I just did it. Replaced with the mentioned values. And it's working now as Unlimited User License. Thank you!

@Mark-Joy
Copy link

I found a very simple way. We have 2 byte value at 00007FF77C7D9144 (in build 4180). This value is set when the program is started to 0 by the instruction:

and word ptr [00007FF77C7D9144], 0

Since the instruction is eight-byte, and I do not want to rebase the program, we replace it with an eight-byte instruction:

or word ptr [00007FF77C7D9144], 0FFFFh

How to edit using HxD (Hex editor)? What to find and replace?
Example: Find "80 79 05 00 0F 94 C2" and replace with "C6 41 05 01 B2 00 90"

@naml3i
Copy link

naml3i commented Nov 22, 2024

anyone know about sublime merge?

Looking for the same thing. Before there was the same value for both ST and SM to replace. Now I can't find the string 80 79 05 00 0F 94 C2 in Sublime Merge exe file

@Destitute-Streetdwelling-Guttersnipe
Copy link

@Fireshtorm1k
Copy link

Fireshtorm1k commented Nov 22, 2024

I found a very simple way. We have 2 byte value at 00007FF77C7D9144 (in build 4180). This value is set when the program is started to 0 by the instruction:

and word ptr [00007FF77C7D9144], 0

Since the instruction is eight-byte, and I do not want to rebase the program, we replace it with an eight-byte instruction:

or word ptr [00007FF77C7D9144], 0FFFFh

How to edit using HxD (Hex editor)? What to find and replace? Example: Find "80 79 05 00 0F 94 C2" and replace with "C6 41 05 01 B2 00 90"

Try find 66 83 25 4A 6D 6D 00 00 and replace to 66 83 0D 4A 6D 6D 00 FF

UPD:
As @Destitute-Streetdwelling-Guttersnipe said, we can replace 66 83 25 4A 6D 6D 00 00 with 66 83 0D 4B 6D 6D 00 FF to also set registration flag

@Fireshtorm1k
Copy link

Fireshtorm1k commented Nov 22, 2024

anyone know about sublime merge?

Looking for the same thing. Before there was the same value for both ST and SM to replace. Now I can't find the string 80 79 05 00 0F 94 C2 in Sublime Merge exe file

Im cracked sublime merge like same as answered above. I can try to find the signature if u want, but i have build 2096 and that sig may not work in your version
image

@Destitute-Streetdwelling-Guttersnipe
Copy link

@Fireshtorm1k
Copy link

@Fireshtorm1k your patch also changes the flag for upgrade. If you move the address 1 byte (4A to 4B), you can set the registration flag directly.

@Destitute-Streetdwelling-Guttersnipe Real. My bad, thanks. That was enough for me, and I didn't look for the upgrade flag.

@vnt-83
Copy link

vnt-83 commented Nov 27, 2024

Im cracked sublime merge like same as answered above. I can try to find the signature if u want, but i have build 2096 and that sig may not work in your version image

Hello. You can crack Sublime Merge 2102 for Linux x64? Thanks.

@naml3i
Copy link

naml3i commented Nov 29, 2024

Sublime Text 4 Build 4107 x64 Easy Tutorial
Youtube Video Link Tutorial Step by Step: https://www.youtube.com/watch?v=pr8GBwPsMHM
IMAGE ALT TEXT HERE
Only tested in Sublime Text Build 4107 x64
Add this follow lines in file "C:\Windows\System32\drivers\etc\hosts"

SublimeText

127.0.0.1 license.sublimehq.com # SublimeText
127.0.0.1 www.sublimetext.com # SublimeText
Download HxD from: https://mh-nexus.de/en/
Open "sublime_text.exe" in HxD, go to "Find/Replace" (Ctrl+R).
Go to tab "Hex-values" and:
Search for: 4157415656575553B828210000
Replace with: 33C0FEC0C3575553B828210000
Search for: 6C6963656E73652E7375626C696D6568712E636F6D
Replace with: 7375626C696D6568712E6C6F63616C686F73740000
Click to save (Ctrl+S).
Now, just register your Sublime Text with this code:
----- BEGIN LICENSE -----
You
Unlimited User License
EA7E-81044230
0C0CD4A8 CAA317D9 CCABD1AC 434C984C
7E4A0B13 77893C3E DD0A5BA1 B2EB721C
4BAAB4C4 9B96437D 14EB743E 7DB55D9C
7CA26EE2 67C3B4EC 29B2C65A 88D90C59
CB6CCBA5 7DE6177B C02C2826 8C9A21B0
6AB1A5B6 20B09EA2 01C979BD 29670B19
92DC6D90 6E365849 4AB84739 5B4C3EA1
048CC1D0 9748ED54 CAC9D585 90CAD815
------ END LICENSE ------

You don't need to do the host patch, if you're replacing the license check in the exe (the 2nd search/replace)

I've also whipped up a quick python script for it, if anyone wants, you'll obviously need python installed.. save as whatever_name_you_want.py (and put it in same folder as sublime_text.exe) and run it, or run it from command line.,.. python .py

with open("sublime_text.exe", "rb") as binaryFile:
    byteData = bytearray(binaryFile.read()) 

# create backup
with open("sublime_text.exe.bak", "wb") as binaryFile:
    binaryFile.write(byteData)

# search for rsa key function
byteData = byteData.replace(b'\x41\x57\x41\x56\x56\x57\x55\x53\xB8\x28\x21\x00\x00', b'\x33\xC0\xFE\xC0\xC3\x57\x55\x53\xB8\x28\x21\x00\x00')
# search for license host check
byteData = byteData.replace(b'\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x75\x62\x6C\x69\x6D\x65\x68\x71\x2E\x63\x6F\x6D', b'\x73\x75\x62\x6C\x69\x6D\x65\x68\x71\x2E\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74\x00\x00')

with open("sublime_text.exe", "wb") as binaryFile:
    binaryFile.write(byteData)

any chance you got the string replacement to patch for the sublime merge 2102 @bad1dea ?

@tari9bro
Copy link

tari9bro commented Dec 6, 2024 via email

@Hazuki-san
Copy link

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

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

Also available here

@Destitute-Streetdwelling-Guttersnipe
Copy link

@strotee
Copy link

strotee commented Dec 18, 2024

Similar to 4180, the patch for the new 4189 is as follows:

80 79 05 00 0F 94 C2 -> C6 41 05 01 B2 00 90

I cannot take credit finding for this so if you're reading this and it looks familiar, thanks & cheers. Works for Win64 & Linux. Use a firewall and don't allow newly edited sublime_text.exe from accessing the internet.

@hassankhan69324
Copy link

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