"Lock to serial number" for macho executables

Issues related to VMProtect
Post Reply
banxian
Posts: 8
Joined: Thu Jun 26, 2014 11:11 am

"Lock to serial number" for macho executables

Post by banxian »

I found a "Lock to serial number" option in new 2.13.5 version vmprotect.
when I enable it on a simple function, I wish to see a "This code requires valid serial number to run" message but my application just crashed with bus error 10.
in windows programs I can invoke VMProtectActivateLicense to get the serial number locked code happy to run, but under mac I don't know how.

another problem, if I enable "pack the output file" or "hide constants" for my mac binary, my binary always faild with segmentation fault 11
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000002113020
call stack show failed on dyld loading.
another more complex crashed with invalid selector sent to object. I guess maybe something wrong on init arrays.
when disable packing, constants, and do not use lock to serial, every thing seems ok.
but I think if an option can checking sure should working...
Admin
Site Admin
Posts: 2584
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: "Lock to serial number" for macho executables

Post by Admin »

We are going to improve Mach-O support in the next version of VMProtect, so this version will support all features (including SDK) that available for PE executables.
banxian
Posts: 8
Joined: Thu Jun 26, 2014 11:11 am

Re: "Lock to serial number" for macho executables

Post by banxian »

cool!
Can I join the beta testers?
If you are happy to receive bug reports, I have a unlucky debuff to see bugs even in calculator or wash machine.
last week just meet more than three bugs in apple's clang internal assembler and their gas/ld.
Admin
Site Admin
Posts: 2584
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: "Lock to serial number" for macho executables

Post by Admin »

banxian
Posts: 8
Joined: Thu Jun 26, 2014 11:11 am

Re: "Lock to serial number" for macho executables

Post by banxian »

bug1:
load a file into vmprotect gui. navigate to "options" category. select "Settings" from menu, switch language. seems vmprotect crashed on re-translate ui.
even after this crash project history disappeared.
bug2:
load any x86_64 thin macho executables into vmprotect gui. hit "compile" with or without add any functions for protection.
Compilation logs show: Runtime error at CompileToNative: xorps xmm0, xmm0
no files generated.
load any i386 one, click compile, no error, but still no files generated.

I attached a app bundle can work with in 2.13.5 test, after some tweak. but failed with 3.0 beta.
and a command line executable doesn't working in both 2.13.5 or new 3.0 beta. in 2.13.5 output file just crash.
I am using xxx_orig for original file, xxx is encrypted one.

bug3:
if input file have no extension, when double click on output field in options, output filename will auto append with ".exe". it's maybe a feature in Qt I think.

PS: in my machine, both 2.13.5 and 3.0 beta is installed. when I click a *.vmp file, vmprotect 3.0 launches, but leave a blank workspace, project is not loaded automatically.

bug4:
load a notepad.exe in windows 7 x64 with sp1, using default option without add any function, outputed notepad.vmp.exe just show a "unregisted version" warning and then quit.
if I disabled Memory+Import+Resource+Pack options, and launch from "compilation complete" question dialog, after warning msgbox, a
---------------------------
Notepad
---------------------------
Cannot find the .txt file.

Do you want to create a new file?
---------------------------
Yes No Cancel
---------------------------
brings up.
seems a extra arguments passed to launched exe. I think it's some typo in code, eg, "" instead of NULL.
Attachments
vmp_b30test.zip
sample file
(41.97 KiB) Downloaded 397 times
Admin
Site Admin
Posts: 2584
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: "Lock to serial number" for macho executables

Post by Admin »

Thank you for your report.
Admin
Site Admin
Posts: 2584
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: "Lock to serial number" for macho executables

Post by Admin »

Post Reply