# power-config **Repository Path**: niu6364/power-config ## Basic Information - **Project Name**: power-config - **Description**: 配合ja-netfilter的power插件,生成power.conf配置及对应激活码 - **Primary Language**: Java - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 101 - **Created**: 2026-01-12 - **Last Updated**: 2026-01-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 描述 此项目用来生成ja-netfilter(https://gitee.com/ja-netfilter/ja-netfilter) power插件的配置及对应的激活码 其原理参见:https://zhuanlan.zhihu.com/p/668667982 ### 如何使用 * 从网上自行下载jetbra.zip包 * check out 本工程,打开FuckJB.java,注意设置好证书保存路径,运行,生成power.conf配置及激活码 * 复制生成的power.conf到jetbra/config-jetbrains目录 * 剩下步骤参照jetbra激活步骤 ### 免责声明 本项目仅供学习研究使用,请勿用于非法用途,造成一切后果与本人无关 ### Usage * download from the [releases page](https://gitee.com/ja-netfilter/ja-netfilter/releases) * add `-javaagent:/absolute/path/to/ja-netfilter.jar` argument (**Change to your actual path**) * add as an argument of the `java` command. eg: `java -javaagent:/absolute/path/to/ja-netfilter.jar -jar executable_jar_file.jar` * some apps support the `JVM Options file`, you can add as a line of the `JVM Options file`. * **WARNING: DO NOT put some unnecessary whitespace characters!** * or execute `java -jar /path/to/ja-netfilter.jar` to use `attach mode`. * for **Java 17** you have to add at least these `JVM Options`: ``` --add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED ``` * edit your plugin config files: `${lower plugin name}.conf` file in the `config` dir where `ja-netfilter.jar` is located. * the `config`, `logs` and `plugins` directories can be specified through **the javaagent args**. * eg: `-javaagent:/path/to/ja-netfilter.jar=appName`, your config, logs and plugins directories will be `config-appname`, `logs-appname` and `plugins-appname`. * if no javaagent args, they default to `config`, `logs` and `plugins`. * this mechanism will avoid extraneous and bloated `config`, `logs` and `plugins`. * run your java application and enjoy~