Skip to content

Instantly share code, notes, and snippets.

@JerryLokjianming
Last active February 23, 2025 00:44
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.

@kodmanyagha
Copy link

Does anyone have a patching method for Build 4180 Linux?

Found elsewhere but it works on Win64. Make sure to run a firewall & prevent from accessing web.
4180: 80 79 05 00 0F 94 C2 -> C6 41 05 01 B2 00 90

It's working for Sublime Text 4180 Linux builds too.

After patching via hexed.it need to chmod +x 👍

Awesome!!!

@vodiylik
Copy link

It runs, but i does not accept any of the above licenses

Screenshot 2024-09-20 at 12 20 44

image

image

Are you patched via Hexed.it?

@QuinTeknoLife
Copy link

Sooo anybody had any luck with 4190 for win64?

@n6333373
Copy link

n6333373 commented Jan 3, 2025

Sooo anybody had any luck with 4190 for win64?

https://github.com/n6333373/sublime-self-patcher just continue to work since it was created.

@Reelix
Copy link

Reelix commented Jan 3, 2025

https://github.com/n6333373/sublime-self-patcher just continue to work since it was created.

I wouldn't trust a closed-source project masquerading as an open-source one.

Those two compiled .pyd files and the .so file should be left as non-compiled files if they wanted it to be open.

@n6333373
Copy link

n6333373 commented Jan 3, 2025

github.com/n6333373/sublime-self-patcher just continue to work since it was created.

I wouldn't trust a closed-source project masquerading as an open-source one.

That's fine. People can find what they want manually as per readme says. I don't mean to open source it nether masquerading. I just need a file host :) Some trusted crackers, e.g., @maboloshi , do have access to its source code though.

@strotee
Copy link

strotee commented Jan 12, 2025

Sooo anybody had any luck with 4190 for win64?

Untitled
Considering the entire changelog is a single line, let's wait until they release a new build with more changes.

@connorfrancey
Copy link

https://github.com/n6333373/sublime-self-patcher just continue to work since it was created.

I wouldn't trust a closed-source project masquerading as an open-source one.

Those two compiled .pyd files and the .so file should be left as non-compiled files if they wanted it to be open.
sublime-self-patcher afik has never claimed to be open source, nor does it even have a license. no clue how you think they are "masquerading" as open source.

@n6333373
Copy link

n6333373 commented Jan 14, 2025

I don't care what you think. Use it or not. You can ask @maboloshi whether he can access to its source codes or not. But yes you don't have to trust him.

Feel free to ask for access if you consider yourself be able to improve it. E.g., add patch patterns for macos or arm64.

@maboloshi
Copy link

I don't care what you think. Use it or not. You can ask @maboloshi whether he can access to its source codes or not. But yes you don't have to trust him.

Feel free to ask for access if you consider yourself be able to improve it. E.g., add patch patterns for macos or arm64.

Yeah, I'm using it. It's more worry-free.

@kodmanyagha
Copy link

kodmanyagha commented Jan 14, 2025

https://github.com/n6333373/sublime-self-patcher

NEVER DOWNLOAD SOMEBODY'S CLOSED SOURCE THINGS!!!

I don't trust any closed source too. If your intentions are not bad, why are you closing the source? There are lots of scæmmer around here. Everyday scæmmers posting malware links in here and I tired to report them. Look at the pictures down below:

Who the hell is n6333373? He has only one repo, this repo created 2 months ago and this is closed source. This is highly suspicious. I think everybody must report this.

image image

@n6333373
Copy link

Yeah. All closed source projects are suspicious. Do whatever you want and share, kid.

@kodmanyagha
Copy link

Yeah. All closed source projects are suspicious. Do whatever you want and share, kid.

Kid? If you saw me you would swallow your tongue. This gist is already explaining the fix. Why don't you share source codes little keyboard boy?

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