Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
0.3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
4ra1n committed Sep 14, 2023
1 parent a3117ff commit 7b30def
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,14 @@ GUI 版本的使用和 CLI 版本基本一致,具体参考 README 文件
更新日志:
- [FEATURE] 参考`beichen`师傅议题阻止dump字节码的方法 #6
- [FEATURE] 应该对完整的所有的字节码进行加密 #3
[FEATURE] GUI 加入密钥部分 #2
- [FEATURE] GUI 和命令行都应该加入自动生成运行命令部分 #7
- [FEATURE] 优化打印的日志以及调试信息 #4
- [FEATURE] ENGLISH DOC #1
- [FEATURE] ENGLISH DOC #1
- 代码和文档的优化

提供 GUI 和 CLI 两个版本,CLI 版本分为 patch 和 export 两个命令
- patch 命令用于加密输入的 jar 包
- export 命令用于导出对应的 dll 解密库

GUI 版本的使用和 CLI 版本基本一致,具体参考 README 文件
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ java -jar code-encryptor-plus.jar export

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

注意:某些情况下可能第一次无法启动,重复使用命令启动即可

```shell
java -XX:+DisableAttachMechanism -agentpath:D:\abs-path\decrypter.dll=PACKAGE_NAME=com.your.pack,KEY=your-key --jar your-jar.jar
```
Expand Down
3 changes: 3 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ java -jar code-encryptor-plus.jar export
Launching the Jar Package with Decryption DLL/SO: (Using the `-agentpath` Parameter)

Please note that you must provide two parameters: `PACKAGE_NAME` and `KEY`.

Note: In some cases, the command may not start successfully the first time. Try running the command multiple times to resolve the issue.

```shell
java -XX:+DisableAttachMechanism -agentpath:D:\abs-path\decrypter.dll=PACKAGE_NAME=com.your.pack,KEY=your-key --jar your-jar.jar
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.y4sec</groupId>
<artifactId>code-encryptor-plus</artifactId>
<version>0.2</version>
<version>0.3</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/org/y4sec/encryptor/cli/ExportCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ public void execute() {
if (OSUtil.isWin()) {
JNIUtil.extractDllSo(DecrypterDLL, outputPath, false);
System.out.println("----------- ADD VM OPTIONS (WINDOWS) -----------");
System.out.println("java -agentpath:/path/to/decrypter.dll=PACKAGE_NAME=xxx [other-params]");
System.out.println("java -XX:+DisableAttachMechanism " +
"-agentpath:/path/to/decrypter.dll=PACKAGE_NAME=xxx,KEY=YOUR-KEY [other-params]");
} else {
JNIUtil.extractDllSo(DecrypterSo, outputPath, false);
System.out.println("----------- ADD VM OPTIONS (LINUX) -----------");
System.out.println("java -agentpath:/path/to/libdecrypter.so=PACKAGE_NAME=xxx [other-params]");
System.out.println("java -XX:+DisableAttachMechanism " +
"-agentpath:/path/to/libdecrypter.so=PACKAGE_NAME=xxx,KEY=YOUR-KEY [other-params]");
}
}
}

0 comments on commit 7b30def

Please sign in to comment.