Skip to content

Instantly share code, notes, and snippets.

@huqi
Created April 11, 2015 09:01
Show Gist options
  • Save huqi/35f2a0792aef830898ca to your computer and use it in GitHub Desktop.
Save huqi/35f2a0792aef830898ca to your computer and use it in GitHub Desktop.
Beyond Compare 4 license for Mac
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
q2Kw2pjoiDs5gIH-uw5U49JzOB6otS7kThBJE-H9A76u4uUvR8DKb+VcB
rWu5qSJGEnbsXNfJdq5L2D8QgRdV-sXHp2A-7j1X2n4WIISvU1V9koIyS
NisHFBTcWJS0sC5BTFwrtfLEE9lEwz2bxHQpWJiu12ZeKpi+7oUSqebX+
--- END LICENSE KEY -----
@ameeno
Copy link

ameeno commented Jan 31, 2019

how to use permanent trial on Linux?

@bosconb
Copy link

bosconb commented Feb 15, 2019

BC 4.2.9 for mac failed,any idea?

@jiangdl
Copy link

jiangdl commented Apr 30, 2019

nice

@thepri10
Copy link

for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。

  1. go to the dir : /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare
  4. insert BCompare the content :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
  1. restart bc .

qq20180826-101956

reference: https://blog.csdn.net/t_332741160/article/details/79285636

BC 4.2.9 for mac failed,any idea?

For mac, try running chmod a+x BCompare in step three

@Inori-Lover
Copy link

win10 4.2.10 has been blacklist

@WcLyic
Copy link

WcLyic commented Aug 11, 2019

4.2.10, build 23938 (Windows x64)
BCompare.exe 452A10:41->C3

@wolverine2k
Copy link

4.2.10, build 23938 (Windows x64)
BCompare.exe 452A10:41->C3

Perfect solution. Thanks @WcLyic.

@nguyenvandau
Copy link

4.2.10, build 23938 (Windows x64)
BCompare.exe 452A10:41->C3

Perfect solution. Thanks @WcLyic.

Please help me, @wolverine2k
i don't understand this solution?
I try registe 4.2.10, build 23938 but the key have beed revoked.

@wolverine2k
Copy link

The solution posted by @WcLyic requires you to operate a hex editor. @nvuyenvandau I suggest you use HXD Hex Editor. Open the file, goto the address mentioned and change to the listed value.

@whogiawho
Copy link

https://blog.csdn.net/David_xtd/article/details/72917107
According this method, I solved “revoked” problem

Thanks

it works!!

@wowremywang
Copy link

Anyway for Beyond Compare 4.3.3 on Mac OS?

@ytlm
Copy link

ytlm commented Mar 11, 2020

for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。

  1. go to the dir : /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare
  4. insert BCompare the content :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
  1. restart bc .

qq20180826-101956

reference: https://blog.csdn.net/t_332741160/article/details/79285636

works fine,thanks

@passioncsu
Copy link

revoked

@AZ-stars
Copy link

It worked with macOS Catalina 10.15.5, BC 4.3.4

@alfaben12
Copy link

It worked with macOS Catalina 10.15.5, BC 4.3.4

is the download link for this version?

@eduarcor
Copy link

eduarcor commented Mar 11, 2021

It doesn't work anymore... at least in Big Sur

Screen Shot 2021-03-11 at 00 13 55

EDIT: It looks like removing the App with AppCleaner, and doing the usual .bak process again, it works

@liguoqinjim
Copy link

maybe it should use chmod a+x BCompare in Big Sur.
It works.

@teocci
Copy link

teocci commented Aug 25, 2021

Guys there is no solution for Windows users?

@WcLyic
Copy link

WcLyic commented Sep 2, 2021

4.4.0, build 25886 (Windows x64)
BCompare.exe 450320:41->C3

@alabotski
Copy link

4.4.1. mac... any news?

@Inori-Lover
Copy link

@alabotski just buy one~
it's ont-time purchase

Copy link

ghost commented Mar 20, 2022

any nwss?

@SravaniLaveti
Copy link

MicrosoftTeams-image (58)
MicrosoftTeams-image (57)
It doesn't work anymore... in Sonoma macOS.

@passsky
Copy link

passsky commented Feb 26, 2024 via email

@marsgovernor
Copy link

4.4.7, build 28397 (Windows x64), the lastest version for Beyond Compare 4
BCompare.exe 450450: 41->C3
Just modify 1 byte and enter the registration code.

Thanks @WcLyic.
Applying patches to the new version according to your method is very simple.

@passsky
Copy link

passsky commented Oct 21, 2024 via email

@CarlosGNM
Copy link

CarlosGNM commented Oct 25, 2024

I use Mac. BC version 4.4.7
From the above messages it worked until I upgraded to Sequoia.
In testing, I have found a method that seems to work. It is basically the same as before.

It is a 3 line script:

#!/bin/sh
rm ‘/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat’
open -a ‘/Applications/Beyond Compare.app’

I saved it as BC.sh and then assigned the permissions:
chmod 700 BC.sh

I've pinned it to the dock and using it to launch the program, since then the counter is still at 30 days remaining.

I have not tested this, but it is likely that doing a task that deletes the 'registry.dat' file every day will give the same result.

@alabotski
Copy link

Save this as sh file and run it

function hex() {
echo ''$1'' | perl -0777pe 's|([0-9a-zA-Z]{2}+(?![^\(]*\)))|\\x${1}|gs'
}
function replace() {
declare -r dom=$( hex $2 )
declare -r sub=$( hex $3 )
sudo perl -0777pi -e 'BEGIN{$/=\1e8} s|'$dom'|'$sub'|gs' "$1"
return
}
function prep() {
sudo xattr -cr "$1"
sudo xattr -r -d com.apple.quarantine "$1"
sudo codesign --force --deep --sign - "$1"
}
function patch() {
replace "/Applications/Beyond Compare.app/Contents/MacOS/BCompare" '2B2B3131496B3A3745466C4E4C733659716333702D4C74554F5842456C696D656B516D38653342545365476878686C706D5644655656727255416B4C5458705A376D4B366A4150414F687948696F6B507459666D6F6B6B6C50454C664F7874317335484A6D416E6C2D35723859457673515859382D646D36454677594A6C5867574F4375744E6E322B46737641374558764D2D32785A314D57384C694765597558434136597432775475553459574D2B5A55426B494745733151524E525949654742394742395973533855322D5A3375756E5A50676E413570462B4538425277597A395A452D2D5646654B4350616D737047377464766A4133414A4E524E7243566D4A76777135537167455177494E64636D77776A6D63344A6574564B37366F6735413573504F495853774F6A6C594B2B536D3872766C4A5A6F78683058466679696F487A34384A5633765862424B6A67416C504163374E70312B776B' '2B2B3131496B3A2B77366D30464530685A32694B517A344C65714A6E6C74326677436F644D375355695130625A63375379634D2D71656B3443473533443577744754773858373567545564354B72356C664A556D6B452D54332B355630684163525044426C43747964384D4F45625271527344736F5A507179725639755843615730447337464F3553725379663366773359342B756E424A597941614C6B74366D7A6837566456634745796354583953472B34764368306F7249556374752B7830553861776C47373661574E74396569616B584265486D42514B49653762516545494576767266675A3233486D7A42394433506175682B6D67327868704E535A64706F395A59574466583048446F31716B756456304238304E46664F556F6C78336D496B32586976696B6D574A54784E3948645650524E32432B7A594E4644513158486955464F73503536342D3562702B69524A4D324266562D71696B'
}
patch
prep "/Applications/Beyond Compare.app"
file_path="$HOME/Library/Application Support/Beyond Compare 5/BC5Key.txt"
mkdir -p "$HOME/Library/Application Support/Beyond Compare 5"
cat <<EOL > "$file_path"
Beyond Compare 5
Licensed to:    MacSerialJunkie
Quantity:       9999 users
Serial number:  8768-3273
License type:   Pro Edition for macOS

--- BEGIN LICENSE KEY ---
9jgh6MwPA4iQthMMF8jM8WmFRZorEUAS4PBwqzyYrJxaQ62DVS
XRVavZRyD9rpJ4vrmVjUN6rNfCTWmWLZLwfJDSuydSh5NpxQac
whP9JfGDUcity22S9i726G2mzdP6JZq1bDeVKGZP2b2YgobfCP
m5tRiXFnpjKVLXfqZtkFEQubgoMRVpR5EF4n9HFzSD5u5mpadY
zpyyBWmrFqtgBXGBC4si2zdHcBhFJVMHeFFsScnhDiinJU1Sa9
YN6R2Y9wHocZ5SdXDVxVqQXUNZzt8jaqHn4b2pn98kbuNrPcui
yNbhjH8UYwVCnEEt5rKmomwqwF57m5AwSGU7YShQCic2QFuoT
--- END LICENSE KEY -----

EOL
chmod 777 "$file_path"
echo -e "\e[92mSpecial Thanks to CRUDE\e[0m"

@rich1e
Copy link

rich1e commented Nov 20, 2024

@alabotski tks for u.

This is a useful method.

Save this as sh file and run it

function hex() {
echo ''$1'' | perl -0777pe 's|([0-9a-zA-Z]{2}+(?![^\(]*\)))|\\x${1}|gs'
}
function replace() {
declare -r dom=$( hex $2 )
declare -r sub=$( hex $3 )
sudo perl -0777pi -e 'BEGIN{$/=\1e8} s|'$dom'|'$sub'|gs' "$1"
return
}
function prep() {
sudo xattr -cr "$1"
sudo xattr -r -d com.apple.quarantine "$1"
sudo codesign --force --deep --sign - "$1"
}
function patch() {
replace "/Applications/Beyond Compare.app/Contents/MacOS/BCompare" '2B2B3131496B3A3745466C4E4C733659716333702D4C74554F5842456C696D656B516D38653342545365476878686C706D5644655656727255416B4C5458705A376D4B366A4150414F687948696F6B507459666D6F6B6B6C50454C664F7874317335484A6D416E6C2D35723859457673515859382D646D36454677594A6C5867574F4375744E6E322B46737641374558764D2D32785A314D57384C694765597558434136597432775475553459574D2B5A55426B494745733151524E525949654742394742395973533855322D5A3375756E5A50676E413570462B4538425277597A395A452D2D5646654B4350616D737047377464766A4133414A4E524E7243566D4A76777135537167455177494E64636D77776A6D63344A6574564B37366F6735413573504F495853774F6A6C594B2B536D3872766C4A5A6F78683058466679696F487A34384A5633765862424B6A67416C504163374E70312B776B' '2B2B3131496B3A2B77366D30464530685A32694B517A344C65714A6E6C74326677436F644D375355695130625A63375379634D2D71656B3443473533443577744754773858373567545564354B72356C664A556D6B452D54332B355630684163525044426C43747964384D4F45625271527344736F5A507179725639755843615730447337464F3553725379663366773359342B756E424A597941614C6B74366D7A6837566456634745796354583953472B34764368306F7249556374752B7830553861776C47373661574E74396569616B584265486D42514B49653762516545494576767266675A3233486D7A42394433506175682B6D67327868704E535A64706F395A59574466583048446F31716B756456304238304E46664F556F6C78336D496B32586976696B6D574A54784E3948645650524E32432B7A594E4644513158486955464F73503536342D3562702B69524A4D324266562D71696B'
}
patch
prep "/Applications/Beyond Compare.app"
file_path="$HOME/Library/Application Support/Beyond Compare 5/BC5Key.txt"
mkdir -p "$HOME/Library/Application Support/Beyond Compare 5"
cat <<EOL > "$file_path"
Beyond Compare 5
Licensed to:    MacSerialJunkie
Quantity:       9999 users
Serial number:  8768-3273
License type:   Pro Edition for macOS

--- BEGIN LICENSE KEY ---
9jgh6MwPA4iQthMMF8jM8WmFRZorEUAS4PBwqzyYrJxaQ62DVS
XRVavZRyD9rpJ4vrmVjUN6rNfCTWmWLZLwfJDSuydSh5NpxQac
whP9JfGDUcity22S9i726G2mzdP6JZq1bDeVKGZP2b2YgobfCP
m5tRiXFnpjKVLXfqZtkFEQubgoMRVpR5EF4n9HFzSD5u5mpadY
zpyyBWmrFqtgBXGBC4si2zdHcBhFJVMHeFFsScnhDiinJU1Sa9
YN6R2Y9wHocZ5SdXDVxVqQXUNZzt8jaqHn4b2pn98kbuNrPcui
yNbhjH8UYwVCnEEt5rKmomwqwF57m5AwSGU7YShQCic2QFuoT
--- END LICENSE KEY -----

EOL
chmod 777 "$file_path"
echo -e "\e[92mSpecial Thanks to CRUDE\e[0m"

@passsky
Copy link

passsky commented Nov 20, 2024 via email

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