Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 7b30def

Browse files
committed
0.3 version
1 parent a3117ff commit 7b30def

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

CHANGELOG.MD

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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 文件

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ java -jar code-encryptor-plus.jar export
6161

6262
注意必须有两个参数`PACKAGE_NAME``KEY`
6363

64+
注意:某些情况下可能第一次无法启动,重复使用命令启动即可
65+
6466
```shell
6567
java -XX:+DisableAttachMechanism -agentpath:D:\abs-path\decrypter.dll=PACKAGE_NAME=com.your.pack,KEY=your-key --jar your-jar.jar
6668
```

doc/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ java -jar code-encryptor-plus.jar export
5858
Launching the Jar Package with Decryption DLL/SO: (Using the `-agentpath` Parameter)
5959

6060
Please 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
6265
java -XX:+DisableAttachMechanism -agentpath:D:\abs-path\decrypter.dll=PACKAGE_NAME=com.your.pack,KEY=your-key --jar your-jar.jar
6366
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

src/main/java/org/y4sec/encryptor/cli/ExportCommand.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)