参考文档:
ja-netfilter
ja-netfilter-mymap-plus
激活教程
介绍一个"牛逼闪闪"开源库:ja-netfilter

1. 介绍

此方法理论适用 JeBrains 全家桶所有版本,本文基于 2021.3.3 测试。

原理:防火墙原理,利用防火墙阻止激活检测

工具:ja-netfilter

官方介绍
我们通常会使用防火墙来阻断这些软件的恶意访问。但防火墙也不是万能的,比如:跨平台问题、https 下无法精准阻断某个 url 访问、部分防火墙不能阻断 dns 访问。
于是就有了我今天开源的这个项目:通用的、针对 java 程序的、灵活的、精准基于规则的、基于 AOP 思想的牛逼哄哄防火墙(无数狗头):ja-netfilter!

2. 使用方式

2.1 下载

ja-netfilter github 下载最新版,保存到自定义目录(不能删除),我们基于 /rainsheep/software 目录。

2.2 配置文件

/rainsheep/software/ja-netfilter/config 目录下。

在 plugins 目录下有一些插件(dns.jar,url.jar 等),对应的配置文件名为 插件名.conf

我们使用 url 和 dns 两个配置。

dns.conf

[DNS]
EQUAL,jetbrains.com

url.conf

[URL]
PREFIX,https://account.jetbrains.com/lservice/rpc/validateKey.action

2.3 使用

我们在 JVM Options file 添加如下内容即可使用(修改为自己的路径)。

-javaagent:/rainsheep/software/ja-netfilter/ja-netfilter.jar

我这边介绍两种方式

2.3.1 使用 Toolbox App

在 Toolbox App ,打开对应软件设置

image.png

image.png

修改配置文件,添加上述那一行代码,重启即可。

2.3.2 直接启动软件

此方式需要保证软件目前处于可用状态(激活或试用)。
或者我们直接修改 vm 文件

image.png

点击编辑,加入上面那行代码,重启即可。

3. ja-netfilter-mymap-plugin

此插件为 ja-netfilter 的插件,功能为 自定义点击激活界面的显示信息,除了修改 UI 没啥作用,可选。

下载 插件,放置到 ja-netfilter 的 plugins 目录。

在 conf 目录下新建配置文件,mymap.conf

[MyMap]
EQUAL,licenseeName->Rainsheep
EQUAL,gracePeriodDays->100000 
EQUAL,paidUpTo->5000-12-31

重启后,打开注册信息可以看到

image-20220318130818987

4. 离线激活

在以上阻止验证的基础上,若弹窗提示过期,退出账号,输入以下离线激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P1xH9kmf22jjQ2JiHhQZP7ZDsreRrOeIQ/c4yR8IQvMLfC0WKQqrHu5ZzXTH4NO3CwGWSlTY74kE91zXB5mwWAx1jig+UXYc2w4RkVhy0//lOmVya/PEepuuTTI4+UJwC7qbVlh5zfhj8oTNUXgN0AOc+Q0/WFPl1aw5VV/VrO8FCoB15lFVlpKaQ1Yh+DVU8ke+rt9Th0BCHXe0uZOEmH0nOnH/0onD

5. 2022/09/13

idea 版本:2022.2.1

参考 Ja-netfilter常见问题解答,进群必看!

6. 2023/04/27

备份 https://oss.rainsheep.cn/save/ja-netfilter.zip

7. 2024/01/30

ja-netfilter