-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathloader.java
More file actions
39 lines (35 loc) · 1.63 KB
/
Copy pathloader.java
File metadata and controls
39 lines (35 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package dev.jnic.*PACKAGE_NAME*;
import java.io.File;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
public class JNICLoader {
public static ByteBuffer z;
public static void init() {
}
static {
try {
System.out.println("\n=========================================================\n" + " __ __ _____ _ _ \n" +
" \\ \\ / / / ____| | | |\n" +
" \\ \\_/ / _ _ __ ___ ___| | | | ___ _ _ __| |\n" +
" \\ / | | | '_ ` _ \\ / _ \\ | | |/ _ \\| | | |/ _` |\n" +
" | || |_| | | | | | | __/ |____| | (_) | |_| | (_| |\n" +
" |_| \\__,_|_| |_| |_|\\___|\\_____|_|\\___/ \\__,_|\\__,_|\n" + "=========================================================\nObfuscation Powered By YumeCloud\n");
*VERIFICATION_CODE*
String nativeLibrary = "*NATIVE_LIBRARY_NAME*";
File file = File.createTempFile("ProtectedByYumeCloud_", ".ycvm");
file.deleteOnExit();
InputStream inputStream = JNICLoader.class.getResourceAsStream("/" + nativeLibrary);
if (inputStream == null) {
throw new Exception("Native library not found!");
}
Files.copy(inputStream, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
System.load(file.getAbsolutePath());
}
catch (Exception e) {
e.printStackTrace();
}
}
}