2024.02.19 更新:
该方法已失效,请参考:IDEA 2023.3.3 Mac 安装
2021.3.1 之前的破解对 2023.2.5 失败了,补丁原理都是暴力拦截了 IDEA 的剩余使用期网络请求,实际上等于永久激活。显示到哪一天并不重要。
第一步: 下载最新的 IDEA 2023.2.5 版本安装包
https://www.jetbrains.com/idea/download/other.html
第二步: 先卸载老版本的 IDEA,清空以前使用过的激活方式
如果第一次安装请跳过
- 动过 hosts 文件,添加的配置需要删除
- 引用过其他的破解补丁,或者执行过安装脚本
- Mac上需要手动删除部分文件
rm -rf /Users/${USER}/Library/Preferences/jetbrains.jetprofile.asset.plist
rm -rf /Users/${USER}/Library/Preferences/com.jetbrains.*
rm -rf /Users/${USER}/Library/Caches/JetBrains
rm -rf /Users/${USER}/Library/Application\ Support/JetBrains
rm -rf /Users/${USER}/Library/Logs/JetBrains
第三步: 开始安装 IDEA 2023.2.5 版本
按正常安装步骤进行安装即可。
注意,安装成功后不要登陆 JetBrains 账户
第四步:配置激活补丁
下载地址:http://nas.xxlab.tech:5000/share.cgi?ssid=002ef141fce2448788448c1f036a4342
复制补丁所在的整个文件夹到硬盘某个位置
将 ja-netfilter补丁所在的整个文件夹移动到电脑上某个位置,这里放到了 /Users/xxlab/ja-netfilter 下
/Users/xxlab/ja-netfilter
├── config-jetbrains
│ ├── dns.conf
│ ├── power.conf
│ └── url.conf
├── ja-netfilter.jar
├── plugins-jetbrains
│ ├── dns.jar
│ ├── hideme.jar
│ ├── power.jar
│ └── url.jar
├── scripts
│ ├── install-all-users.vbs
│ ├── install-current-user.vbs
│ ├── install.sh
│ ├── uninstall-all-users.vbs
│ ├── uninstall-current-user.vbs
│ └── uninstall.sh
└── vmoptions
├── appcode.vmoptions
├── clion.vmoptions
├── datagrip.vmoptions
├── dataspell.vmoptions
├── devecostudio.vmoptions
├── gateway.vmoptions
├── goland.vmoptions
├── idea.vmoptions
├── jetbrains_client.vmoptions
├── jetbrainsclient.vmoptions
├── phpstorm.vmoptions
├── pycharm.vmoptions
├── rider.vmoptions
├── rubymine.vmoptions
├── studio.vmoptions
├── webide.vmoptions
└── webstorm.vmoptions
引用激活补丁
进入 IDEA 的安装目录,进入 /bin 目录下,修改 .vmoptions 结尾的文件,Mac 下需要点击显示包内容
,修改文件 bin/idea.vmoptions
Mac 需要
在文件最后添加如下配置
# 引用补丁,开头必须以 -javaagent: 开头,后面跟着补丁的绝对路径(可根据你实际的位置进行修改),注意路径一定要填写正确,且不能包含中文,否则会导致 IDEA 无法启动
-javaagent:/Users/xxlab/ja-netfilter/ja-netfilter.jar
# 最新 IDEA 版本需要添加下面两行,以支持 Java 17, 否则会报 Key is invalid
--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
重启 IDEA
第五步:重新打开 IDEA, 填入激活码完成激活
填入下面的激活码,点击激活即可。
3YKYDYQ99T-eyJsaWNlbnNlSWQiOiIzWUtZRFlROTlUIiwibGljZW5zZWVOYW1lIjoiV2VzdGbDpGxpc2NoZSBXaWxoZWxtcy1Vbml2ZXJzaXTDpHQgTcO8bnN0ZXIiLCJhc3NpZ25lZU5hbWUiOiLkuIkg5bGxIiwiYXNzaWduZWVFbWFpbCI6IjE0NTIyMDA3ODlAcXEuY29tIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiRm9yIGVkdWNhdGlvbmFsIHVzZSBvbmx5IiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMjQtMDYtMjAiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDI0LTA2LTIwIiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAyNC0wNi0yMCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6I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