# ja-trick-all **Repository Path**: phpdragon/ja-trick-all ## Basic Information - **Project Name**: ja-trick-all - **Description**: 基于byte-buddy实现的某IDE系列产品的激活工具。本项目只做个人学习研究之用,不得用于商业用途!原理请见:https://zhile.io/2021/11/29/ja-netfilter-javaagent-lib.html - **Primary Language**: Java - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-16 - **Last Updated**: 2025-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java ## README # ja-trick-all [Chinese (Simplified)](README.md) | [English](README_en.md) ## Introduction An activation tool for a certain series of IDE products. ## Usage Optional: Please run `license-site/src/test/java/org/novice/leo/site/JetbrainsCertGenerator` to automatically replace the existing certificate and private key. 1. Execute: `build.cmd` in the root directory. 2. Unzip the target/ja-trick-all.zip in the root directory to the installation directory. 3. Run the installation script: macOS or Linux: execute "scripts/install.sh". Windows: Double-click to run " scripts\install-current-user" (for the current user), "scripts\install-all-users" (for all users). 4. Reopen the IDE to load the environment variables. 5. Copy the license-site/target/license-site.jar in the root directory to the server directory. 6. Run `nohup java -jar ./license-site.jar > ./license-site.log &`, then visit [http://serverIp:8080](http://127.0.0.1:8080) to obtain the activation code. ## ja-trick usage - Edit your plugin config files: `*.conf` file in the config dir where `ja-trick.jar` is located. - The config, log, and plugins directories can be specified using the javaagent args. * eg: -javaagent:/path/to/ja-trick.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 can isolate the configuration of different applications. ### ja-trick config file format ```conf # Examples EQUAL,https://someurl # EQUAL Use `equals` to compare # EQUAL_IC Use `equals` to compare, ignore case # KEYWORD Use `contains` to compare # KEYWORD_IC Use `contains` to compare, ignore case # PREFIX Use `startsWith` to compare # PREFIX_IC Use `startsWith` to compare, ignore case # SUFFIX Use `endsWith` to compare # SUFFIX_IC Use `endsWith` to compare, ignore case # REGEXP Use regular expressions to match ``` ### ja-trick Debug - By default, `ja-trick` does **NOT** output debugging information - Add system environment variable 'JA_TRICK_DEBUG=1' (log level) and start enabling it - Or add the JVM startup parameter '-Dja-trick.debug=1' (log level) to enable it - Log levels: NONE=0, DEBUG=1, INFO=2, WARN=3, ERROR=4 ### ja-trick Debug output - By default, 'ja-trick' outputs debugging information to the console - Added the system environment variable 'JA_TRICK_OUTPUT=value' to change the log output medium - Or add the JVM startup parameter '-Dja-trick.output=value' to change the log output medium - Output medium values: [NONE=0, CONSOLE=1, FILE=2, CONSOLE+FILE=3, WITH_PID=4] - Eg: console + file + pid file name = 1 + 2 + 4 =7, so '-dja-trick.output=7' ### ja-trick plugin This project has plug-in examples, as usual development can be. ## References - [ja-netfilter](https://gitee.com/ja-netfilter/ja-netfilter) - [jetbra](https://gitea.998043.xyz/novice/jetbra) - [jetbrains-license](https://github.com/lixuanfengs/jetbrains-license) ## Thanks - [zhile](https://zhile.io/) - [ja-netfilter](https://gitee.com/ja-netfilter) - [novice.li](https://linux.do/u/novice.li) - [lixuanfengs](https://github.com/lixuanfengs) ## Note - Please support genuine software. This tutorial is only for learning and technical exchange!!! - The activation time can be modified by yourself. It is not recommended to set it too long, as some plugins may fail to activate.