1. We are not accepting any new account registrations at this time - watch out for announcements on Discord.

Sublime Merge v1097 (Patch Request - previous working patch no longer works)

Discussion in 'REQ > Applications / Software' started by keyser soze, Dec 13, 2018.

  1. keyser soze

    keyser soze Registered User

    Joined:
    Feb 17, 2017
    Messages:
    188
    Likes Received:
    1,662
    1. APPLICATION NAME
    Sublime Merge v1097 (same guys who did Sublime Text, now same idea for a fast and nice Git front end)

    2. HOMEPAGE
    https://www.sublimemerge.com/download

    3. DESCRIPTION
    Git Client, done Sublime
    Meet a new Git Client, from the makers of Sublime Text
    A snappy UI, three-way merge tool, side-by-side diffs, syntax highlighting, and more.
    check out their features: https://www.sublimemerge.com/

    4. OS PLATFORM
    There are releases for all platforms, but I am looking for a patch for Windows.

    5. LANGUAGE
    English.

    6. DOWNLOAD LINK
    for the latest version:
    https://download.sublimetext.com/sublime_merge_build_1097_x64_setup.exe
    https://download.sublimetext.com/sublime_merge_build_1097_x64.zip

    for v1070, last version with known working patch:
    https://download.sublimetext.com/sublime_merge_build_1070_x64_setup.exe
    https://download.sublimetext.com/sublime_merge_build_1070_x64.zip

    7. PROTECTION
    The protection seems simple. Check out the last known patch:
    https://github.com/bousqi/slm-patcher

    more specifically, the replacement pattern:
    https://github.com/bousqi/slm-patcher/blob/master/slm.py

    Note that the patterns change depending on OS.

    The problem is that after version 1070, those known patterns are no longer found/working

    screenshot:
    [​IMG]

    8. REGISTRATION METHOD
    Registration similar to Sublime Text. However, a patch is nowadays more efficient. The patched v1070 works beautifully.

    9. LIMITATIONS
    Cannot change colour theme, nags frequently about buying, unregistered string on title bar and about.

    10. COMMENTS
    The patch for v1070 works beautifully for that version. It would be great to find out what are the new patterns for their latest release.

    In fact, don't need to bother with an executable file for patching the exe. Just listing the patterns to be replaced for all platforms will do. I prefer to make those replacements by hand (provided they are simple and small, like the previous patch for this one, or the patch for Sublime Text. However, considering the previous patch, the new one has to be equally simple.).

    It would be great if the cracker could release the method employed for finding out the patterns to crack, and how to crack them. Which software was used, what was looking for, etc.
     
    Last edited: Dec 14, 2018
    Neilton, aldomac, HoMeCracKeR and 3 others like this.
  2. ic

    icscrew Registered User

    Joined:
    Nov 5, 2017
    Messages:
    22
    Likes Received:
    234
    Tested Cracked Sublime 1097 windows version file...

    Hidden Content:
    [HIDDEN CONTENT]
     
    Last edited: Dec 25, 2018
    Neilton, Billy Biro, morski and 17 others like this.
  3. keyser soze

    keyser soze Registered User

    Joined:
    Feb 17, 2017
    Messages:
    188
    Likes Received:
    1,662
    At first, it worked beautifully. No "unregistered" shown anywhere. It was also possible to change the theme to dark, and it would retain that setting over time and even on next start.

    However, leaving the program running for a while, it becomes unregistered again. Restarting the program removes the "unregistered" string from the title bar. Surprisingly, it does retain the theme change.

    The patch does work, not perfectly, but certainly better than nothing.
     
    Last edited: Jan 9, 2019
  4. ic

    icscrew Registered User

    Joined:
    Nov 5, 2017
    Messages:
    22
    Likes Received:
    234
    Update Cracked Sublime Merge 1097.

    Hidden Content:
    [HIDDEN CONTENT]
     
    morski, leewm, appleDie and 6 others like this.
  5. keyser soze

    keyser soze Registered User

    Joined:
    Feb 17, 2017
    Messages:
    188
    Likes Received:
    1,662
    Why pack it? What is the benefit of packing the executable file?
    Can you provide the cracked file unpacked?
     
  6. ic

    icscrew Registered User

    Joined:
    Nov 5, 2017
    Messages:
    22
    Likes Received:
    234
    Upload Cracked file without Packed ;)

    Hidden Content:
    [HIDDEN CONTENT]
     
    morski, leewm, tjameiy1 and 11 others like this.
  7. Stingered

    Stingered Registered User Reverser

    Joined:
    Mar 16, 2017
    Messages:
    279
    Likes Received:
    1,580
    Not knowing what the patch does, I'm wondering if the app performs a phone home via the Internet to validate registration and is the cause of becoming unregistered again.

    [edit]

    So going back and reading the OP, I can see that there are three checks (at least):

    Initial License Check
    Persistent License Check
    Theme Check

    So it's possible that the available patcher for 1709 (in this thread) is only checking for the initial check and not the persistent one.
     
    Last edited: Jan 10, 2019
    jiucenglou and mortezakhorshidy like this.
  8. keyser soze

    keyser soze Registered User

    Joined:
    Feb 17, 2017
    Messages:
    188
    Likes Received:
    1,662
    Yeah! Much better this way! I like to compare the original exe with the patched one. It increases confidence by seeing that only a few bytes changed here and there. When the cracked file is unrecognisable (ie. re-packed) and significantly different to the original, I wonder if it is not hiding something else in there.
     
    mortezakhorshidy likes this.
  9. ic

    icscrew Registered User

    Joined:
    Nov 5, 2017
    Messages:
    22
    Likes Received:
    234
    Its last cracked (pack and not packed) file work or not ?
     
    mortezakhorshidy and keyser soze like this.
  10. keyser soze

    keyser soze Registered User

    Joined:
    Feb 17, 2017
    Messages:
    188
    Likes Received:
    1,662
    I am testing the unpacked version only, the latest one. I did not touch the packed one.

    Sublime Merge is opened for approximately 4 hours and it is still behaving as registered. Before, it seems the previous patch resisted for perhaps 30 minutes or so as registered. I am checking for new versions also (ie it is not blocked from the internet, and it can talk to home). I will leave it open for some more hours to ensure that it does not revert to unregistered after a while. I will also test that it retains the change of theme (although it was already working perfectly before, so I expect that it will remain working fine).

    I am extremely confident that this release is the "keeper" one. I will edit this comment later on, but I would be very surprised if this one did not work out.

    Good on'ya. Great work. However, my previous questions persist. How did you do it? How did you figure it out? Were the previous patches useful at all? (I noticed that the replacements are similar)
     
    mortezakhorshidy likes this.
  11. keyser soze

    keyser soze Registered User

    Joined:
    Feb 17, 2017
    Messages:
    188
    Likes Received:
    1,662
    Sublime Merge remained opened and with uninterrupted access to the internet for ~15 hours. It never showed "unregistered". Upon closing and re-opening it, it retained the changed theme.

    I would say that this is *the* working crack. Great job @icscrew . :emoji_thumbsup::emoji_clap:
     
    mortezakhorshidy likes this.
  12. rivo

    rivo Registered User

    Joined:
    Jul 27, 2008
    Messages:
    175
    Likes Received:
    4,124
    Thanks ….could you work also for macos platform please?
     
    mortezakhorshidy likes this.
  13. Randshot

    Randshot Registered User

    Joined:
    Jan 6, 2018
    Messages:
    19
    Likes Received:
    87
    @keyser soze I don't know what @icscrew patched, since I can't see his link, but here is what I did:
    Code:
        INITIAL_LICENSE_CHECK_AOB
        Build: 1050 -> 1097
        IDA Sig: 80 38 00 74 6A
                    ^^ ^^
                    08 01
    
        Build 1097: @0x‭4F9641‬
        Build 1070: @0x‭22630‬
    
        PERSISTENT_LICENSE_CHECK_AOB_OLD
        Build: 1055 -> 1070
        IDA Sig: C6 01 00 C3 CC 55
                       ^^
                       01
    
        Build 1070: @0x‭2852F
    
        PERSISTENT_LICENSE_CHECK_AOB_NEW
        Build: > 1097
        IDA Sig: C6 01 00 C3 CC
                       ^^
                       01
    
        Build 1097: @0x2B0CF
    
        THEME_CHECK_AOB_OLD
        Build: 1055 -> 1070
        IDA Sig: 66 C7 05 ? ? ? ? ?? ? C7 05 ? ? ? ? ? ? ? ?
                                  ^^
                                  01
    
        Build 1070: @0x‭21918
    
        THEME_CHECK_AOB_NEW
        Build: > 1097
        IDA Sig: 66 83 25 ? ? ? ? ?? 83 25 ? ? ? ? ?
                       ^^         ^^
                       0D         01
    
        Build 1097: @0x‭256B8 &@0x256C2
    

    Build 1097:
    Code:
    λ python slm.py slm.bak
    Patcher >> Starting job...
     >> Windows version
     >> looking for INITIAL_LICENSE_CHECK_AOB
     >> found 1 occurences (1 expected)
     >> found @0x4f963f
     >> looking for PERSISTENT_LICENSE_CHECK_AOB
     >> found 0 occurences (1 expected)
     >> found 1 occurences (1 expected)
     >> found @0x2b0cb
     >> looking for THEME_CHECK_AOB
     >> found 0 occurences (1 expected)
     >> found 1 occurences (1 expected)
     >> found @0x256b4
    Patcher >> Successfully patched 'slm_1097.bak'.
    


    Build 1070:
    Code:
    λ python slm.py slm_1070.bak
    Patcher >> Starting job...
     >> Windows version
     >> looking for INITIAL_LICENSE_CHECK_AOB
     >> found 1 occurences (1 expected)
     >> found @0x2262e
     >> looking for PERSISTENT_LICENSE_CHECK_AOB
     >> found 1 occurences (1 expected)
     >> found @0x2852b
     >> looking for THEME_CHECK_AOB
     >> found 1 occurences (1 expected)
     >> found @0x2190a
    Patcher >> Successfully patched 'slm_1070.bak'.
    

    Btw. the offsets in the spoilers above, don't include the write offsets found in the python script!
    I hope this helped :D
     
    Last edited: Jan 24, 2019
    morski and keyser soze like this.
  14. Randshot

    Randshot Registered User

    Joined:
    Jan 6, 2018
    Messages:
    19
    Likes Received:
    87
    If you don't want to do it manually, here is the modified python script:
    Hidden Content:
    [HIDDEN CONTENT]
     
  15. ic

    icscrew Registered User

    Joined:
    Nov 5, 2017
    Messages:
    22
    Likes Received:
    234
    Sublime Merge now update to version 1103

    Hidden Content:
    [HIDDEN CONTENT]
     
    Last edited: Jan 24, 2019
    czyt, panadolrr, Angelo2007 and 15 others like this.
  16. keyser soze

    keyser soze Registered User

    Joined:
    Feb 17, 2017
    Messages:
    188
    Likes Received:
    1,662
    hey @icscrew, from now on, could you please reply the new patched files on this thread:
    www.board4all.biz

    this saves me from redirecting from that thread to this one. cheers.
     
  17. Randshot

    Randshot Registered User

    Joined:
    Jan 6, 2018
    Messages:
    19
    Likes Received:
    87
    The script still works for the new 1103 build:

    Edit: Found a change for the initial license check. Look below for an updated script.
     
    Last edited: Jan 24, 2019
    keyser soze likes this.
  18. Stingered

    Stingered Registered User Reverser

    Joined:
    Mar 16, 2017
    Messages:
    279
    Likes Received:
    1,580
    Just out of curiosity, did you debug this or just run a diff against the patched EXE? I've been debugging this and I can tell you that the "theme save" (what I'm calling it), is much different tin 1097 than 1070. Bypassing the pop-up was pretty easy, the by theme choice wasn't saving. I was in the midst of putting my notes together when I saw this python script thing.
     
  19. Randshot

    Randshot Registered User

    Joined:
    Jan 6, 2018
    Messages:
    19
    Likes Received:
    87
    @Stingered I referenced the 1070 script and then searched for the "same" locations in IDA Pro.
    I don't have access to the patched executable posted above.

    What I have just noticed is, that the initial license check changed in the latest build 1103, or at least the signature for it.

    Also, the 'theme check' in the original script just modifies the default theme option loaded at startup.
    I don't think it is needed anymore, but I have put it in anyway.
     
    Last edited: Jan 24, 2019
    keyser soze likes this.
  20. Randshot

    Randshot Registered User

    Joined:
    Jan 6, 2018
    Messages:
    19
    Likes Received:
    87
    Sublime Merge (Build 1103) Patch Script

    Hidden Content:
    [HIDDEN CONTENT]
     
    Last edited: Jan 24, 2019