Skip to content

Instantly share code, notes, and snippets.

@marcpinet
Last active April 13, 2024 17:11
Show Gist options
  • Star 57 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save marcpinet/27c6de31a6b25a99248abc859cc09c9b to your computer and use it in GitHub Desktop.
Save marcpinet/27c6de31a6b25a99248abc859cc09c9b to your computer and use it in GitHub Desktop.
Activate Sublime Text 4 Build 4143 and below for ever (also maybe above, but not yet tried)

Activate Sublime Text (for ever)

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner and select sublime_text.exe
  3. Press CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1
  4. Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

Last update: 2023-01-23

@zhongxuanS
Copy link

great job

@EZeX377
Copy link

EZeX377 commented Apr 21, 2023

Tnx.

@theHardess
Copy link

theHardess commented May 14, 2023

please dear god, how do I get this to work on my poor linux machine?

@saivinaygondrala
Copy link

that didnt work for me wat to do

@marcpinet
Copy link
Author

that didnt work for me wat to do

you probably did it wrong

@cyberzilla
Copy link

how could this happen? I've tried it and it works

@saivinaygondrala
Copy link

can anyone tell me in detail i couldnt understand how to do

@cyberzilla
Copy link

can anyone tell me in detail i couldnt understand how to do

I think the explanation above is very clear

@ZikeCao
Copy link

ZikeCao commented Jun 12, 2023

thk! 4143 is available

@rismanherdiana
Copy link

Salam tani

@M0nkky
Copy link

M0nkky commented Jun 30, 2023

oh men thanks, I've been looking for a solution for ages

@paragparmar88
Copy link

Thanks man, It works.

@ariful743
Copy link

Wow! This works, Thank you so much!

@saivinaygondrala
Copy link

Finally it even worked for me Thanks guys

@AndreiPrystupchyk
Copy link

AndreiPrystupchyk commented Jul 12, 2023

Find for 80 78 05 00 0f 94 C1 outputting this:
There is no data matching your search criteria.

edit: Oh got it, use Firefox instead Safari.

@sutan99
Copy link

sutan99 commented Jul 14, 2023

chrome, n tor not work, cant found/not match

@AndreiPrystupchyk
Copy link

chrome, n tor not work, cant found/not match

Try Firefox, and path to sublimetext file

@houshinian
Copy link

Invalid Can't run on this computer

@NoobToolzz
Copy link

This currently still works on the latest Stable build (4151). If you would like the executable you can download it here from the link below.
Link expires at: Aug 16, 2023 4:02 PM
Download: https://file.io/Vz4UDAkkZVGo

Steps

  1. Download the file from the link above.
  2. Navigate to C:\Program Files\Sublime Text (default path)

    If you did not download Sublime Text to the default path then navigate to the path where you downloaded it.

  3. Replace sublime_text.exe with your downloaded file.
  4. Launch Sublime Text and you should have a Unlimited User License.

@Bubbu0129
Copy link

Also works for version 4152.

@NoobToolzz
Copy link

NoobToolzz commented Aug 3, 2023

Also works for version 4152.

Indeed it does.
Latest download link (Stable 4152 build): https://file.io/J27YnosEGiNG

Note

You are going to HAVE to edit and replace the exe every single update, the same exe (as previous update you had) will not work. It will just push you back to the old build.

Steps

  1. Download the file from the link above.
  2. Navigate to C:\Program Files\Sublime Text (default path)

If you did not download Sublime Text to the default path then navigate to the path where you downloaded it.

  1. Replace sublime_text.exe with your downloaded file.
  2. Launch Sublime Text and you should have a Unlimited User License.

@I-like-beans
Copy link

I-like-beans commented Nov 20, 2023

@NoobToolzz @marcpinet So I'm on a Mac. I've tried everything and nothing will work I have done everything to a T and I get "There is no data matching your search criteria". so I downloaded Firefox and tried it there and it won't let me import sublime text it only lets me take files which doesn't work so can someone help me figure this out? I'm trying to use sublime text for fun but I don't wanna pay $100 for something I would barely use if anyone could help me out that would be awesome.

@NoobToolzz
Copy link

@NoobToolzz @marcpinet So I'm on a Mac. I've tried everything and nothing will work I have done everything to a T and I get "There is no data matching your search criteria". so I downloaded Firefox and tried it there and it won't let me import sublime text it only lets me take files which doesn't work so can someone help me figure this out? I'm trying to use sublime text for fun but I don't wanna pay $100 for something I would barely use if anyone could help me out that would be awesome.

I have seen some Sublime Text cracks for Mac, but they're very outdated. Tried one myself and it didn't work so I just got rid of it. I don't have much knowledge on Mac so I'm not really able to help you get this crack on a Mac, very sorry. Mac doesn't use executable files so I cannot really do much from my side.

@marcpinet
Copy link
Author

@I-like-beans @NoobToolzz Obviously, it won't work on other platforms than Windows.

I didn't thought I would've had to mention it, but since a .exe is compiled to run on Windows, the byte code is only Windows-specific.

Obviously, again, the hexadecimal (or machine code) for Linux and Mac won't be the same...

@I-like-beans
Copy link

@marcpinet oh, shows you how dumb I am. I'm new to all this stuff so sorry for wasting your time. Thank you though for your response and helping me understand that I need to do this on a Windows machine.

@marcpinet
Copy link
Author

@marcpinet oh, shows you how dumb I am. I'm new to all this stuff so sorry for wasting your time. Thank you though for your response and helping me understand that I need to do this on a Windows machine.

I'm sorry if it felt like I was passive agressive lol don't worry bro it's normal for people who are new to computer engineering

@I-like-beans
Copy link

@marcpinet oh, shows you how dumb I am. I'm new to all this stuff so sorry for wasting your time. Thank you though for your response and helping me understand that I need to do this on a Windows machine.

I'm sorry if it felt like I was passive agressive lol don't worry bro it's normal for people who are new to computer engineering

yeah, all good thanks for all the help ima try this on my windows machine now and see how it goes. Thanks!

@I-like-beans
Copy link

I-like-beans commented Nov 20, 2023

@marcpinet so It's working on my Windows machine and doesn't say "unregistered" anymore, is there a way for my Mac machine to say the same thing or no? like is there a way for me to trick sublime text on my Mac or is this way only for Windows machines?

@Destitute-Streetdwelling-Guttersnipe

@I-like-beans @marcpinet It works on Mac with Intel CPU, but not on Mac M1/M2.
In fact, it works on Win/Mac/Linux with Intel CPU.

For Mac M1/M2, look at this https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47

@marcpinet
Copy link
Author

def replace_bytes(file_path, original_bytes, new_bytes):
    # Open the file in read+binary mode
    with open(file_path, 'rb+') as file:
        content = file.read()
        
        # Find the original byte sequence
        index = content.find(original_bytes)
        if index == -1:
            print("Byte sequence not found.")
            return False
        
        # Log the location of the bytes to be replaced
        print(f"Byte sequence found at index: {index}")
        
        # Move the file pointer to the location of the byte sequence
        file.seek(index)
        
        # Write the new byte sequence
        file.write(new_bytes)
        
        print("Byte sequence replaced successfully.")
        return True

# Define the original and new byte sequences
original_bytes = bytes([0x80, 0x78, 0x05, 0x00, 0x0F, 0x94, 0xC1])
new_bytes = bytes([0xC6, 0x40, 0x05, 0x01, 0x48, 0x85, 0xC9])

# Path to the sublime_text.exe (make sure to use the correct path)
file_path = "sublime_text.exe"

# Call the function
result = replace_bytes(file_path, original_bytes, new_bytes)

Simple Python script that will do the job for you.

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