This repository was archived by the owner on Dec 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed
src/main/java/org/y4sec/encryptor/cli Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -41,5 +41,14 @@ GUI 版本的使用和 CLI 版本基本一致,具体参考 README 文件
4141更新日志:
4242- [ FEATURE] 参考` beichen ` 师傅议题阻止dump字节码的方法 #6
4343- [ FEATURE] 应该对完整的所有的字节码进行加密 #3
44+ [ FEATURE] GUI 加入密钥部分 #2
45+ - [ FEATURE] GUI 和命令行都应该加入自动生成运行命令部分 #7
4446- [ FEATURE] 优化打印的日志以及调试信息 #4
45- - [ FEATURE] ENGLISH DOC #1
47+ - [ FEATURE] ENGLISH DOC #1
48+ - 代码和文档的优化
49+
50+ 提供 GUI 和 CLI 两个版本,CLI 版本分为 patch 和 export 两个命令
51+ - patch 命令用于加密输入的 jar 包
52+ - export 命令用于导出对应的 dll 解密库
53+
54+ GUI 版本的使用和 CLI 版本基本一致,具体参考 README 文件
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ java -jar code-encryptor-plus.jar export
6161
6262注意必须有两个参数` PACKAGE_NAME ` 和` KEY `
6363
64+ 注意:某些情况下可能第一次无法启动,重复使用命令启动即可
65+
6466``` shell
6567java -XX:+DisableAttachMechanism -agentpath:D:\a bs-path\d ecrypter.dll=PACKAGE_NAME=com.your.pack,KEY=your-key --jar your-jar.jar
6668```
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ java -jar code-encryptor-plus.jar export
5858Launching the Jar Package with Decryption DLL/SO: (Using the ` -agentpath ` Parameter)
5959
6060Please note that you must provide two parameters: ` PACKAGE_NAME ` and ` KEY ` .
61+
62+ Note: In some cases, the command may not start successfully the first time. Try running the command multiple times to resolve the issue.
63+
6164``` shell
6265java -XX:+DisableAttachMechanism -agentpath:D:\a bs-path\d ecrypter.dll=PACKAGE_NAME=com.your.pack,KEY=your-key --jar your-jar.jar
6366```
Original file line number Diff line number Diff line change 66
77 <groupId >org.y4sec</groupId >
88 <artifactId >code-encryptor-plus</artifactId >
9- <version >0.2 </version >
9+ <version >0.3 </version >
1010
1111 <properties >
1212 <maven .compiler.source>8</maven .compiler.source>
Original file line number Diff line number Diff line change @@ -26,11 +26,13 @@ public void execute() {
2626 if (OSUtil .isWin ()) {
2727 JNIUtil .extractDllSo (DecrypterDLL , outputPath , false );
2828 System .out .println ("----------- ADD VM OPTIONS (WINDOWS) -----------" );
29- System .out .println ("java -agentpath:/path/to/decrypter.dll=PACKAGE_NAME=xxx [other-params]" );
29+ System .out .println ("java -XX:+DisableAttachMechanism " +
30+ "-agentpath:/path/to/decrypter.dll=PACKAGE_NAME=xxx,KEY=YOUR-KEY [other-params]" );
3031 } else {
3132 JNIUtil .extractDllSo (DecrypterSo , outputPath , false );
3233 System .out .println ("----------- ADD VM OPTIONS (LINUX) -----------" );
33- System .out .println ("java -agentpath:/path/to/libdecrypter.so=PACKAGE_NAME=xxx [other-params]" );
34+ System .out .println ("java -XX:+DisableAttachMechanism " +
35+ "-agentpath:/path/to/libdecrypter.so=PACKAGE_NAME=xxx,KEY=YOUR-KEY [other-params]" );
3436 }
3537 }
3638}
You can’t perform that action at this time.
0 commit comments