I am coding a jni dynamic library
It uses a array to save method information to register native method on jvm
JNINativeMethod table[] = {
{"method_name", "method_dec", (void *) &method_ptr}
};
After compiled, it will become "memcopy" like
memcopy (dest,tables_offset,sizeof (dest))
But the offset is in .rcdata
As I packing it, it will be deleted by vmprotect
About a ELF packing issue
Re: About a ELF packing issue
I don't understand where you use memcopy and what is ".rcdata". Do you have a simple example (EXE+original DLL+VMP files) that shows your problem?
Re: About a ELF packing issue
It's a Java application using java8
Install java8 in linux_x86_64
Just use "java -jar obftest.jar" to run the application
If disappear unsatisfied link excepetion,try use "sudo ln -s /usr/lib/libc.so.6 /usr/lib64/libc.so"
The vmprotect project file didn't turn on any protection options, but it runs well before packing.
After packing the x64-linux.so file(didn't turn on any protection options just pack), the output file will occurre a jvm error(SIGSEGV 0xb)
By the way, if you want to test the packed file, just rename x64-linux.vmp.so to x64-linux.so and put the renamed file into the jar file (in the package fl0wowP4rty/%randomname/x64-linux.so)
- Attachments
-
- output.zip
- (45.32 KiB) Downloaded 209 times
Re: About a ELF packing issue
Only the following symbol link works for my Ubuntu 20.04:If disappear unsatisfied link excepetion,try use "sudo ln -s /usr/lib/libc.so.6 /usr/lib64/libc.so"
"sudo ln -s /usr/lib/x86-64-linux-gnu/libc.so.6 /usr/lib/libc.so"
Re: About a ELF packing issue
Fixed in the 1832 build.