Hello,
I use the VMProtect demo (v3.2) to test before I buy.
With an exe, then a dll, everything works !
But I encounter an error with a WinDDK driver : “Not enough space for the new segment in the file header”.
The error persists even if I change the “DRIVER_ALIGNMENT” value in the sources before recompiling (= 0x1200).
This is my current setup :
Memory Protection : Yes
Import Protection : Yes
Debugger : User-mode + Kernel-mode
Virtualization Tools : No
Strip Debug Information : Yes
Key Pair Algorithm : RSA 4096
Do you have any idea, please ?
Thank you
ovid
August 5, 2018, 8:25am
2
The error persists even if I change the “DRIVER_ALIGNMENT” value in the sources before recompiling (= 0x1200).
why you change this from 0x1000 to 0x1200 what reason?
also I think you should use your protection based on hwid inside not use VMP for drivers.
anyway just my opinion, admin is one that solve problems here.
a47
August 31, 2018, 10:45pm
4
Have same issue(not enough space for the new segment in the file header) when trying to protect linux so in ultimate windows version(spirt****@pm.me ) and with linux x64 trial too
file example: share.riseup.net (cannot attach here cuz “Invalid file extension: libLLVM-3.9.so”)
Does VMP 3.2 support elf64 so shared libs?
Admin
September 1, 2018, 4:38am
5
VMProtect supports elf64 binaries.
a47
September 1, 2018, 6:54am
6
Nice, but what should i do with this compilation error? Where is the root? May be i should use another gcc flags? Will this error fixed?
a47
September 1, 2018, 10:37am
8
Admin
September 1, 2018, 10:59am
9
In this case there is not enough free space in the file header.
a47
September 1, 2018, 11:37am
10
Yes, but is there way for protection this project? After ur question I’ve tried to include vmprotectsdk.h and set up markers for some functions, but result is the same.
Admin
September 1, 2018, 12:43pm
11
You can use the following trick with SDK name: “./././././././././././././libVMProtectSDK.so” (many many /./.). This string is placed in the file header and after protection the place of this string will be used for creation of a new segment(s).
a47
September 1, 2018, 3:15pm
12
how to perform it? could u provide an example?
Admin
September 1, 2018, 4:24pm
13
Try this:
gcc -L././././././././././
a47
September 1, 2018, 4:30pm
14
set(CMAKE_SHARED_LINKER_FLAGS “${CMAKE_SHARED_LINKER_FLAGS} -L ./././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././src/libVMProtectSDK64.so”)
didnt work
Admin
September 1, 2018, 5:08pm
15
Please read help about “-L” more carefully.
a47
September 2, 2018, 6:22am
16
yeah, sorry for whong -L usage, but i still cannot fix this issue
Admin
September 4, 2018, 3:00pm
17
a47
September 5, 2018, 6:47am
18
The GNU linker(ld) hasnt -headerpad flag(or same): https://linux.die.net/man/1/ld
lld(llvm linker), too. Mac OS using own linker also called “ld” with another flags: ld(1) osx man page | unix.com (and only it has headerpad)
Admin
September 15, 2018, 5:16am
19
Could you send us a test example (original binary) that shows your problem?
a47
September 22, 2018, 5:45am
20
Yes, here is the example: https://0x0.st/s3Pf.so